css
@layer reset, arkyn;@layer reset {* {margin: 0;padding: 0;box-sizing: border-box;}*,input,textarea,button {font-family: "Open Sans", sans-serif;font-optical-sizing: auto;}}
line-height: 130% or any other line-height
value in unlayered global CSS. Keep this rule inside the reset layer so
it does not interfere with Arkyn component styles. In some cases,
developers may think text is not vertically centered, when the real cause
is the global line-height affecting the component's internal layout.css
:root {--white: #ffffff;/* background */--background: #f4f4f5;--background-foreground: #ffffff;/* modal, drawer, popover... */--card: #ffffff;--card-foreground-primary: #fafafa;--card-foreground-secondary: #f1f5f9;--card-foreground-third: #e2e8f0;/* skeleton */--skeleton: #f8fafc;--skeleton-foreground: #f1f5f9;/* text */--text-heading: #18181b;--text-body: #52525b;--text-muted: #a1a1aa;/* border */--border: #e2e8f0;/* tooltip */--tooltip-text: #f1f5f9;--tooltip-background: #0f172a;/* spotlight */--spotlight-primary: 17, 109, 220; /* #116ddc */--spotlight-secondary: 248, 250, 252; /* #f8fafc */--spotlight-success: 16, 185, 129; /* #10b981 */--spotlight-danger: 244, 63, 94; /* #f43f5e */--spotlight-info: 14, 165, 233; /* #0ea5e9 */--spotlight-warning: 249, 115, 22; /* #f97316 *//* spotlight light (10% about white) */--spotlight-primary-light: 231, 240, 252; /* #E7F0FC */--spotlight-secondary-light: 254, 255, 255; /* #FEFFFF */--spotlight-success-light: 231, 248, 242; /* #E7F8F2 */--spotlight-danger-light: 254, 236, 239; /* #FEECEF */--spotlight-info-light: 231, 246, 253; /* #E7F6FD */--spotlight-warning-light: 254, 241, 232; /* #FEF1E8 *//* toast */--toast-success: 16, 185, 129; /* #10B981 */--toast-danger: 225, 29, 72; /* #E11D48 */--toast-info: 14, 165, 233; /* #0EA5E9 */--toast-warning: 251, 146, 60; /* #FB923C */}
ts
import "<yourPath>/reset.css";import "@arkyn/components/dist/bundle.css";
reset, and reserve the arkyn layer for the library stylesheet.@arkyn/components/dist/bundle.css.