blip-tokens 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +469 -28
- package/build/assets/v1/manifest.json +1 -1
- package/build/css/uai-colors.css +163 -0
- package/build/css/uai-dimensions.css +72 -0
- package/build/css/uai-shadows.css +18 -0
- package/build/css/uai-typography.css +52 -0
- package/build/css/uai.css +4 -0
- package/build/json/uai-dark.tokens.json +2078 -0
- package/build/json/uai-light.tokens.json +2078 -0
- package/build/json/uai-metadata.json +955 -0
- package/build/json/uai-shadows.json +42 -0
- package/build/json/uai-text-styles.json +478 -0
- package/build/scss/extended-color.scss +1 -1
- package/build/scss/theme-dark.scss +1 -1
- package/build/scss/theme-high-contrast.scss +1 -1
- package/build/scss/theme-light.scss +1 -1
- package/build/scss/uai-colors-dark.scss +39 -0
- package/build/scss/uai-colors-light.scss +39 -0
- package/build/scss/uai-dimensions.scss +35 -0
- package/build/scss/uai-shadows.scss +8 -0
- package/build/scss/uai-typography.scss +25 -0
- package/build/scss/variables.scss +1 -1
- package/build/tokens.d.ts +12 -0
- package/build/tokens.js +1677 -0
- package/package.json +29 -6
- package/docs/ad/003-icon-type-exports.md +0 -166
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
$uai-border-width-default: 1px; // Border width. 1px. Standard borders.
|
|
2
|
+
$uai-border-width-none: 0px; // Border width. 0px.
|
|
3
|
+
$uai-border-width-thick: 2px; // Border width. 2px. Focus rings and emphasis borders.
|
|
4
|
+
$uai-radius-2xl: 1.5rem; // Border radius. 24px.
|
|
5
|
+
$uai-radius-full: 624.9375rem; // Border radius. Full round.
|
|
6
|
+
$uai-radius-lg: 0.75rem; // Border radius. 12px.
|
|
7
|
+
$uai-radius-md: 0.5rem; // Border radius. 8px.
|
|
8
|
+
$uai-radius-none: 0rem; // Border radius. 0px.
|
|
9
|
+
$uai-radius-sm: 0.25rem; // Border radius. 4px.
|
|
10
|
+
$uai-radius-xl: 1rem; // Border radius. 16px.
|
|
11
|
+
$uai-radius-xs: 0.125rem; // Border radius. 2px.
|
|
12
|
+
$uai-sizing-2xl: 2.5rem; // Fixed size. 40px. Medium avatars.
|
|
13
|
+
$uai-sizing-3xl: 3rem; // Fixed size. 48px. Large avatars.
|
|
14
|
+
$uai-sizing-4xl: 4rem; // Fixed size. 64px. Extra large avatars.
|
|
15
|
+
$uai-sizing-lg: 1.5rem; // Fixed size. 24px. Icon medium (default).
|
|
16
|
+
$uai-sizing-md: 1.25rem; // Fixed size. 20px. Icon small.
|
|
17
|
+
$uai-sizing-sm: 1rem; // Fixed size. 16px. Icon x-small.
|
|
18
|
+
$uai-sizing-xl: 2rem; // Fixed size. 32px. Small avatars.
|
|
19
|
+
$uai-sizing-xs: 0.75rem; // Fixed size. 12px. Status dots, tiny indicators.
|
|
20
|
+
$uai-spacing-2xl: 2.5rem; // Spacing. 40px.
|
|
21
|
+
$uai-spacing-2xs: 0.25rem; // Spacing. 4px.
|
|
22
|
+
$uai-spacing-3xl: 3rem; // Spacing. 48px.
|
|
23
|
+
$uai-spacing-3xs: 0.125rem; // Spacing. 2px.
|
|
24
|
+
$uai-spacing-4xl: 3.5rem; // Spacing. 56px.
|
|
25
|
+
$uai-spacing-5xl: 4rem; // Spacing. 64px.
|
|
26
|
+
$uai-spacing-6xl: 4.5rem; // Spacing. 72px.
|
|
27
|
+
$uai-spacing-7xl: 5rem; // Spacing. 80px.
|
|
28
|
+
$uai-spacing-8xl: 5.5rem; // Spacing. 88px.
|
|
29
|
+
$uai-spacing-9xl: 6rem; // Spacing. 96px.
|
|
30
|
+
$uai-spacing-lg: 1.5rem; // Spacing. 24px.
|
|
31
|
+
$uai-spacing-md: 1rem; // Spacing. 16px.
|
|
32
|
+
$uai-spacing-none: 0rem; // Spacing. 0px.
|
|
33
|
+
$uai-spacing-sm: 0.75rem; // Spacing. 12px.
|
|
34
|
+
$uai-spacing-xl: 2rem; // Spacing. 32px.
|
|
35
|
+
$uai-spacing-xs: 0.5rem; // Spacing. 8px.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$uai-elevation-1: 0px 2px 8px -2px rgb(0 0 0 / 0.16); // Cards and raised surfaces. CSS var(--uai-elevation-1).
|
|
2
|
+
$uai-elevation-3: 0px 8px 4px -4px rgb(0 0 0 / 0.08), 0px 12px 12px -4px rgb(0 0 0 / 0.12); // Floating panels above other content. CSS var(--uai-elevation-3).
|
|
3
|
+
$uai-elevation-dialog: 0px 32px 32px -20px rgb(0 0 0 / 0.1); // Modals and dialogs. CSS var(--uai-elevation-dialog).
|
|
4
|
+
$uai-elevation-2: 0px 6px 16px -4px rgb(0 0 0 / 0.16); // Dropdowns, popovers, tooltips. CSS var(--uai-elevation-2).
|
|
5
|
+
$uai-elevation-tab-active: 0px 1px 4px 0px rgb(0 0 0 / 0.1); // Active tab. CSS var(--uai-elevation-tab-active).
|
|
6
|
+
$uai-elevation-sidebar-right: 48px 0px 100px 0px rgb(0 0 0 / 0.25); // Drawer or sidebar opening from the left (shadow to the right). CSS var(--uai-elevation-sidebar-right).
|
|
7
|
+
$uai-elevation-floating-control: 0px 1.67px 6.67px -1.67px rgb(0 0 0 / 0.16); // Small floating controls and chips. CSS var(--uai-elevation-floating-control).
|
|
8
|
+
$uai-elevation-sidebar-left: -48px 0px 100px 0px rgb(0 0 0 / 0.25); // Drawer or sidebar opening from the right (shadow to the left). CSS var(--uai-elevation-sidebar-left).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$uai-body-base-font-size: 0.875rem; // Body Base — 14px. Default application text.
|
|
2
|
+
$uai-body-base-line-height: 1.375rem; // Body Base — 22px.
|
|
3
|
+
$uai-caption-font-size: 0.75rem; // Caption — 12px. Helpers, badges, small body text.
|
|
4
|
+
$uai-caption-line-height: 1.25rem; // Caption — 20px.
|
|
5
|
+
$uai-display-font-size: 2.5rem; // Display — 40px. Hero, landing pages.
|
|
6
|
+
$uai-display-line-height: 3rem; // Display — 48px.
|
|
7
|
+
$uai-font-family-display: Figtree; // Display font for hero and marketing titles. Figtree today; may diverge per product.
|
|
8
|
+
$uai-font-family-sans: Figtree; // Primary font for all interface text. Figtree.
|
|
9
|
+
$uai-font-weight-bold: 700; // Bold weight (700). Titles, strong emphasis.
|
|
10
|
+
$uai-font-weight-extrabold: 800; // ExtraBold weight (800). Hero emphasis; maps to blip-ds bold="extra-bold".
|
|
11
|
+
$uai-font-weight-medium: 500; // Medium weight (500). Labels, buttons.
|
|
12
|
+
$uai-font-weight-regular: 400; // Regular weight (400). Default body text.
|
|
13
|
+
$uai-font-weight-semibold: 600; // SemiBold weight (600). Subtitles, navigation.
|
|
14
|
+
$uai-heading-lg-font-size: 1.5rem; // Heading LG — 24px. Content sections.
|
|
15
|
+
$uai-heading-lg-line-height: 2rem; // Heading LG — 32px.
|
|
16
|
+
$uai-heading-md-font-size: 1.25rem; // Heading MD — 20px. Subsections.
|
|
17
|
+
$uai-heading-md-line-height: 1.75rem; // Heading MD — 28px.
|
|
18
|
+
$uai-heading-xl-font-size: 2rem; // Heading XL — 32px. Main page title.
|
|
19
|
+
$uai-heading-xl-line-height: 2.5rem; // Heading XL — 40px.
|
|
20
|
+
$uai-letter-spacing-expanded: 2.8px; // Expanded letter spacing (0.2em). Spaced body variant.
|
|
21
|
+
$uai-letter-spacing-normal: 0px; // Default letter spacing for all text styles.
|
|
22
|
+
$uai-overline-font-size: 0.625rem; // Overline — 10px. Tags, restricted use.
|
|
23
|
+
$uai-overline-line-height: 1rem; // Overline — 16px.
|
|
24
|
+
$uai-title-font-size: 1rem; // Title — 16px. Card titles, strong labels, navigation. Use regular weight for large body text.
|
|
25
|
+
$uai-title-line-height: 1.5rem; // Title — 24px.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TokenName = "uai-action-destructive" | "uai-action-destructive-foreground" | "uai-action-outline-default" | "uai-action-outline-hover" | "uai-action-outline-pressed" | "uai-action-primary-default" | "uai-action-primary-foreground" | "uai-action-primary-hover" | "uai-action-primary-pressed" | "uai-border-default" | "uai-border-input" | "uai-border-ring" | "uai-content-disabled" | "uai-content-inverse" | "uai-content-link" | "uai-content-placeholder" | "uai-content-primary" | "uai-content-secondary" | "uai-feedback-error" | "uai-feedback-error-subtle" | "uai-feedback-info" | "uai-feedback-info-subtle" | "uai-feedback-success" | "uai-feedback-success-subtle" | "uai-feedback-warning" | "uai-feedback-warning-subtle" | "uai-fixed-blue" | "uai-fixed-brand" | "uai-fixed-bright" | "uai-fixed-dim" | "uai-overlay-default" | "uai-overlay-hover" | "uai-overlay-insight" | "uai-overlay-pressed" | "uai-surface-background" | "uai-surface-contrast" | "uai-surface-inverse" | "uai-surface-muted" | "uai-surface-paper" | "uai-border-width-default" | "uai-border-width-none" | "uai-border-width-thick" | "uai-radius-2xl" | "uai-radius-full" | "uai-radius-lg" | "uai-radius-md" | "uai-radius-none" | "uai-radius-sm" | "uai-radius-xl" | "uai-radius-xs" | "uai-sizing-2xl" | "uai-sizing-3xl" | "uai-sizing-4xl" | "uai-sizing-lg" | "uai-sizing-md" | "uai-sizing-sm" | "uai-sizing-xl" | "uai-sizing-xs" | "uai-spacing-2xl" | "uai-spacing-2xs" | "uai-spacing-3xl" | "uai-spacing-3xs" | "uai-spacing-4xl" | "uai-spacing-5xl" | "uai-spacing-6xl" | "uai-spacing-7xl" | "uai-spacing-8xl" | "uai-spacing-9xl" | "uai-spacing-lg" | "uai-spacing-md" | "uai-spacing-none" | "uai-spacing-sm" | "uai-spacing-xl" | "uai-spacing-xs" | "uai-body-base-font-size" | "uai-body-base-line-height" | "uai-caption-font-size" | "uai-caption-line-height" | "uai-display-font-size" | "uai-display-line-height" | "uai-font-family-display" | "uai-font-family-sans" | "uai-font-weight-bold" | "uai-font-weight-extrabold" | "uai-font-weight-medium" | "uai-font-weight-regular" | "uai-font-weight-semibold" | "uai-heading-lg-font-size" | "uai-heading-lg-line-height" | "uai-heading-md-font-size" | "uai-heading-md-line-height" | "uai-heading-xl-font-size" | "uai-heading-xl-line-height" | "uai-letter-spacing-expanded" | "uai-letter-spacing-normal" | "uai-overline-font-size" | "uai-overline-line-height" | "uai-title-font-size" | "uai-title-line-height";
|
|
2
|
+
export type ShadowName = "uai-elevation-1" | "uai-elevation-3" | "uai-elevation-dialog" | "uai-elevation-2" | "uai-elevation-tab-active" | "uai-elevation-sidebar-right" | "uai-elevation-floating-control" | "uai-elevation-sidebar-left";
|
|
3
|
+
export type TextStyleName = "uai-typography-overline-medium" | "uai-typography-caption-regular" | "uai-typography-heading-lg-semibold" | "uai-typography-title-semibold" | "uai-typography-display-semibold" | "uai-typography-title-medium" | "uai-typography-overline-regular" | "uai-typography-overline-semibold" | "uai-typography-heading-xl-semibold" | "uai-typography-heading-md-regular" | "uai-typography-body-base-bold" | "uai-typography-heading-lg-regular" | "uai-typography-display-bold" | "uai-typography-title-regular" | "uai-typography-heading-lg-bold" | "uai-typography-heading-md-bold" | "uai-typography-caption-bold" | "uai-typography-display-regular" | "uai-typography-heading-md-semibold" | "uai-typography-caption-medium" | "uai-typography-caption-semibold" | "uai-typography-heading-xl-regular" | "uai-typography-body-base-medium" | "uai-typography-body-base-regular" | "uai-typography-body-base-regular-space" | "uai-typography-title-bold" | "uai-typography-heading-xl-bold" | "uai-typography-body-base-semibold";
|
|
4
|
+
export type ThemeTokens = Readonly<Record<TokenName, string | number>>;
|
|
5
|
+
export type TokenMetadata = Readonly<{ description: string; type: string; collection: "Typography" | "Colors" | "Dimensions"; scopes: readonly string[]; figmaVariableId: string }>;
|
|
6
|
+
export type ShadowStyle = Readonly<{ value: string; description: string; figmaStyleId: string }>;
|
|
7
|
+
export type TextStyle = Readonly<{ name: string; fontFamily: string; fontSize: string; lineHeight: string; fontWeight: number; letterSpacing: string; description: string; figmaStyleId: string; tokens: Readonly<Record<"fontFamily" | "fontSize" | "lineHeight" | "fontWeight" | "letterSpacing", string>> }>;
|
|
8
|
+
export declare const light: ThemeTokens;
|
|
9
|
+
export declare const dark: ThemeTokens;
|
|
10
|
+
export declare const shadows: Readonly<Record<ShadowName, ShadowStyle>>;
|
|
11
|
+
export declare const textStyles: Readonly<Record<TextStyleName, TextStyle>>;
|
|
12
|
+
export declare const metadata: Readonly<Record<TokenName, TokenMetadata>>;
|