@dinofront/design_system 0.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 +65 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.types.d.ts +21 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.types.d.ts +18 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +2 -0
- package/dist/components/Badge/Badge.types.d.ts +14 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.types.d.ts +15 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/ButtonGroup/ButtonGroup.types.d.ts +6 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +2 -0
- package/dist/components/Card/Card.types.d.ts +14 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +11 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +24 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.d.ts +2 -0
- package/dist/components/Drawer/Drawer.types.d.ts +23 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +7 -0
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +37 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/Filter/Filter.d.ts +2 -0
- package/dist/components/Filter/Filter.types.d.ts +17 -0
- package/dist/components/Filter/index.d.ts +2 -0
- package/dist/components/IconTile/IconTile.d.ts +2 -0
- package/dist/components/IconTile/IconTile.types.d.ts +13 -0
- package/dist/components/IconTile/index.d.ts +2 -0
- package/dist/components/InfoField/InfoField.d.ts +2 -0
- package/dist/components/InfoField/InfoField.types.d.ts +16 -0
- package/dist/components/InfoField/index.d.ts +2 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +2 -0
- package/dist/components/InlineAlert/InlineAlert.types.d.ts +15 -0
- package/dist/components/InlineAlert/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input/Input.types.d.ts +15 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.types.d.ts +21 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +2 -0
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +44 -0
- package/dist/components/MultiSelect/index.d.ts +2 -0
- package/dist/components/NotificationBadge/NotificationBadge.d.ts +2 -0
- package/dist/components/NotificationBadge/NotificationBadge.types.d.ts +15 -0
- package/dist/components/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -0
- package/dist/components/Pagination/Pagination.types.d.ts +14 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/PersonCard/PersonCard.d.ts +2 -0
- package/dist/components/PersonCard/PersonCard.types.d.ts +20 -0
- package/dist/components/PersonCard/index.d.ts +2 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.types.d.ts +22 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.types.d.ts +24 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +3 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +25 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Snackbar/Snackbar.d.ts +3 -0
- package/dist/components/Snackbar/Snackbar.types.d.ts +28 -0
- package/dist/components/Snackbar/index.d.ts +2 -0
- package/dist/components/Status/Status.d.ts +2 -0
- package/dist/components/Status/Status.types.d.ts +12 -0
- package/dist/components/Status/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch/Switch.types.d.ts +9 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +8 -0
- package/dist/components/Table/Table.types.d.ts +55 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.types.d.ts +26 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +2 -0
- package/dist/components/Text/Text.types.d.ts +15 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +2 -0
- package/dist/components/TextArea/TextArea.types.d.ts +10 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +15 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Upload/Upload.d.ts +3 -0
- package/dist/components/Upload/Upload.types.d.ts +24 -0
- package/dist/components/Upload/index.d.ts +2 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +2663 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +8 -0
- package/dist/styles.css +2624 -0
- package/dist/tailwind/preset.d.ts +41 -0
- package/dist/tailwind/preset.js +151 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/dist/tailwind/tokens.d.ts +141 -0
- package/dist/tokens/colors.d.ts +286 -0
- package/dist/tokens/index.d.ts +5 -0
- package/dist/tokens/radius.d.ts +15 -0
- package/dist/tokens/shadows.d.ts +13 -0
- package/dist/tokens/spacing.d.ts +18 -0
- package/dist/tokens/typography.d.ts +161 -0
- package/dist/types/base.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { tailwindBorderRadius, tailwindBoxShadow, tailwindColors, tailwindFontFamily, tailwindFontSize } from './tokens';
|
|
2
|
+
/**
|
|
3
|
+
* Minimal shape of the config fragment we export. Kept local instead of
|
|
4
|
+
* importing Tailwind's own config type so this file has zero build-time
|
|
5
|
+
* dependency on `tailwindcss` internals — it's just plain data.
|
|
6
|
+
*/
|
|
7
|
+
export interface UiPreset {
|
|
8
|
+
darkMode: 'class';
|
|
9
|
+
theme: {
|
|
10
|
+
extend: {
|
|
11
|
+
colors: typeof tailwindColors;
|
|
12
|
+
borderRadius: typeof tailwindBorderRadius;
|
|
13
|
+
boxShadow: typeof tailwindBoxShadow;
|
|
14
|
+
fontFamily: typeof tailwindFontFamily;
|
|
15
|
+
fontSize: typeof tailwindFontSize;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Tailwind preset for consumer apps still on a JS config (Tailwind v3, or
|
|
21
|
+
* v4 via the `@config` compatibility directive). Spread it into your own
|
|
22
|
+
* config's `presets` array:
|
|
23
|
+
*
|
|
24
|
+
* ```js
|
|
25
|
+
* // tailwind.config.js
|
|
26
|
+
* import { uiPreset } from '@ps-tools/ui/preset';
|
|
27
|
+
*
|
|
28
|
+
* export default {
|
|
29
|
+
* presets: [uiPreset],
|
|
30
|
+
* content: [
|
|
31
|
+
* './src/**\/*.{ts,tsx}',
|
|
32
|
+
* './node_modules/@ps-tools/ui/dist/**\/*.js',
|
|
33
|
+
* ],
|
|
34
|
+
* };
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Native Tailwind v4 CSS-config consumers don't need this — importing
|
|
38
|
+
* `@ps-tools/ui/styles.css` already registers every token via `@theme inline`.
|
|
39
|
+
*/
|
|
40
|
+
export declare const uiPreset: UiPreset;
|
|
41
|
+
export default uiPreset;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
//#region src/tailwind/tokens.ts
|
|
2
|
+
var e = (e, t) => Object.fromEntries(t.map((t) => [t, `var(--color-${e}-${t})`])), t = [
|
|
3
|
+
20,
|
|
4
|
+
30,
|
|
5
|
+
40,
|
|
6
|
+
50,
|
|
7
|
+
100,
|
|
8
|
+
200,
|
|
9
|
+
300,
|
|
10
|
+
400,
|
|
11
|
+
500,
|
|
12
|
+
600,
|
|
13
|
+
700,
|
|
14
|
+
800,
|
|
15
|
+
900
|
|
16
|
+
], n = [
|
|
17
|
+
20,
|
|
18
|
+
50,
|
|
19
|
+
100,
|
|
20
|
+
200,
|
|
21
|
+
300,
|
|
22
|
+
400,
|
|
23
|
+
500,
|
|
24
|
+
600,
|
|
25
|
+
700,
|
|
26
|
+
800,
|
|
27
|
+
900
|
|
28
|
+
], r = [
|
|
29
|
+
50,
|
|
30
|
+
100,
|
|
31
|
+
200,
|
|
32
|
+
300,
|
|
33
|
+
400,
|
|
34
|
+
500,
|
|
35
|
+
600,
|
|
36
|
+
700,
|
|
37
|
+
800,
|
|
38
|
+
900
|
|
39
|
+
], i = {
|
|
40
|
+
white: "var(--color-white)",
|
|
41
|
+
brand: e("brand", t),
|
|
42
|
+
gray: e("gray", n),
|
|
43
|
+
green: e("green", r),
|
|
44
|
+
blue: e("blue", r),
|
|
45
|
+
purple: e("purple", [
|
|
46
|
+
20,
|
|
47
|
+
50,
|
|
48
|
+
100,
|
|
49
|
+
200,
|
|
50
|
+
300,
|
|
51
|
+
400,
|
|
52
|
+
500,
|
|
53
|
+
600,
|
|
54
|
+
700,
|
|
55
|
+
800,
|
|
56
|
+
900
|
|
57
|
+
]),
|
|
58
|
+
pink: e("pink", r),
|
|
59
|
+
red: e("red", [
|
|
60
|
+
20,
|
|
61
|
+
50,
|
|
62
|
+
100,
|
|
63
|
+
200,
|
|
64
|
+
300,
|
|
65
|
+
400,
|
|
66
|
+
500,
|
|
67
|
+
600,
|
|
68
|
+
700,
|
|
69
|
+
800,
|
|
70
|
+
900
|
|
71
|
+
]),
|
|
72
|
+
yellow: e("yellow", r),
|
|
73
|
+
"bg-default": "var(--color-bg-default)",
|
|
74
|
+
"bg-container": "var(--color-bg-container)",
|
|
75
|
+
"bg-subtle": "var(--color-bg-subtle)",
|
|
76
|
+
"bg-brand-lighter": "var(--color-bg-brand-lighter)",
|
|
77
|
+
"bg-info-lighter": "var(--color-bg-info-lighter)",
|
|
78
|
+
"bg-success-lighter": "var(--color-bg-success-lighter)",
|
|
79
|
+
"bg-warning-lighter": "var(--color-bg-warning-lighter)",
|
|
80
|
+
"bg-danger-lighter": "var(--color-bg-danger-lighter)",
|
|
81
|
+
"fg-default": "var(--color-fg-default)",
|
|
82
|
+
"fg-secondary": "var(--color-fg-secondary)",
|
|
83
|
+
"fg-tertiary": "var(--color-fg-tertiary)",
|
|
84
|
+
"fg-disabled": "var(--color-fg-disabled)",
|
|
85
|
+
"fg-inverse": "var(--color-fg-inverse)",
|
|
86
|
+
"fg-brand": "var(--color-fg-brand)",
|
|
87
|
+
"fg-info": "var(--color-fg-info)",
|
|
88
|
+
"fg-success": "var(--color-fg-success)",
|
|
89
|
+
"fg-warning": "var(--color-fg-warning)",
|
|
90
|
+
"fg-danger": "var(--color-fg-danger)",
|
|
91
|
+
"border-default": "var(--color-border-default)",
|
|
92
|
+
"border-subtle": "var(--color-border-subtle)",
|
|
93
|
+
"border-strong": "var(--color-border-strong)",
|
|
94
|
+
"border-brand": "var(--color-border-brand)",
|
|
95
|
+
"icon-primary": "var(--color-icon-primary)",
|
|
96
|
+
"icon-secondary": "var(--color-icon-secondary)",
|
|
97
|
+
"icon-inverse": "var(--color-icon-inverse)",
|
|
98
|
+
"icon-brand": "var(--color-icon-brand)",
|
|
99
|
+
"icon-info": "var(--color-icon-info)",
|
|
100
|
+
"icon-danger": "var(--color-icon-danger)",
|
|
101
|
+
"icon-warning": "var(--color-icon-warning)"
|
|
102
|
+
}, a = {
|
|
103
|
+
xs: "var(--radius-xs)",
|
|
104
|
+
sm: "var(--radius-sm)",
|
|
105
|
+
md: "var(--radius-md)",
|
|
106
|
+
lg: "var(--radius-lg)",
|
|
107
|
+
xl: "var(--radius-xl)",
|
|
108
|
+
"2xl": "var(--radius-2xl)",
|
|
109
|
+
"3xl": "var(--radius-3xl)",
|
|
110
|
+
full: "var(--radius-full)"
|
|
111
|
+
}, o = {
|
|
112
|
+
z1: "var(--shadow-z1)",
|
|
113
|
+
z2: "var(--shadow-z2)",
|
|
114
|
+
z3: "var(--shadow-z3)",
|
|
115
|
+
z4: "var(--shadow-z4)",
|
|
116
|
+
z5: "var(--shadow-z5)"
|
|
117
|
+
}, s = {
|
|
118
|
+
ps: "var(--font-ps)",
|
|
119
|
+
sans: "var(--font-sans)"
|
|
120
|
+
}, c = (e) => [`var(--text-${e})`, { lineHeight: `var(--text-${e}--line-height)` }], l = {
|
|
121
|
+
darkMode: "class",
|
|
122
|
+
theme: { extend: {
|
|
123
|
+
colors: i,
|
|
124
|
+
borderRadius: a,
|
|
125
|
+
boxShadow: o,
|
|
126
|
+
fontFamily: s,
|
|
127
|
+
fontSize: {
|
|
128
|
+
"h-xl": c("h-xl"),
|
|
129
|
+
"h-lg": c("h-lg"),
|
|
130
|
+
"h-md": c("h-md"),
|
|
131
|
+
"h-std": c("h-std"),
|
|
132
|
+
"h-sm": c("h-sm"),
|
|
133
|
+
"h-xs": c("h-xs"),
|
|
134
|
+
"p-lg": c("p-lg"),
|
|
135
|
+
"p-md": c("p-md"),
|
|
136
|
+
"p-std": c("p-std"),
|
|
137
|
+
"p-sm": c("p-sm"),
|
|
138
|
+
"p-xs": c("p-xs"),
|
|
139
|
+
"label-lg": c("label-lg"),
|
|
140
|
+
"label-md": c("label-md"),
|
|
141
|
+
"label-std": c("label-std"),
|
|
142
|
+
"label-sm": c("label-sm"),
|
|
143
|
+
"label-xs": c("label-xs"),
|
|
144
|
+
"label-xxs": c("label-xxs")
|
|
145
|
+
}
|
|
146
|
+
} }
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
export { l as default, l as uiPreset };
|
|
150
|
+
|
|
151
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.js","names":[],"sources":["../../src/tailwind/tokens.ts","../../src/tailwind/preset.ts"],"sourcesContent":["/**\n * Tailwind `theme.extend`-shaped token map, for consumer apps still using a\n * JS Tailwind config (v3-style, or v4 via the `@config` compatibility\n * directive). Every value points at the CSS custom properties defined in\n * `styles/tokens.css` / `styles/theme.css` — never a hardcoded value — so\n * this stays correct regardless of light/dark mode or future palette edits.\n *\n * Consumers on native Tailwind v4 CSS config don't need this file at all:\n * importing `@ps-tools/ui/styles.css` already registers these as Tailwind\n * theme values via `@theme`.\n */\n\nconst colorScale = (name: string, steps: readonly number[]) =>\n Object.fromEntries(steps.map((step) => [step, `var(--color-${name}-${step})`]));\n\nconst BRAND_STEPS = [20, 30, 40, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900] as const;\nconst GRAY_STEPS = [20, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900] as const;\nconst TEN_STEP = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900] as const;\nconst PURPLE_STEPS = [20, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900] as const;\nconst RED_STEPS = [20, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900] as const;\n\nexport const tailwindColors = {\n white: 'var(--color-white)',\n brand: colorScale('brand', BRAND_STEPS),\n gray: colorScale('gray', GRAY_STEPS),\n green: colorScale('green', TEN_STEP),\n blue: colorScale('blue', TEN_STEP),\n purple: colorScale('purple', PURPLE_STEPS),\n pink: colorScale('pink', TEN_STEP),\n red: colorScale('red', RED_STEPS),\n yellow: colorScale('yellow', TEN_STEP),\n\n /* Semantic aliases — prefer these over raw scales in components. */\n 'bg-default': 'var(--color-bg-default)',\n 'bg-container': 'var(--color-bg-container)',\n 'bg-subtle': 'var(--color-bg-subtle)',\n 'bg-brand-lighter': 'var(--color-bg-brand-lighter)',\n 'bg-info-lighter': 'var(--color-bg-info-lighter)',\n 'bg-success-lighter': 'var(--color-bg-success-lighter)',\n 'bg-warning-lighter': 'var(--color-bg-warning-lighter)',\n 'bg-danger-lighter': 'var(--color-bg-danger-lighter)',\n\n 'fg-default': 'var(--color-fg-default)',\n 'fg-secondary': 'var(--color-fg-secondary)',\n 'fg-tertiary': 'var(--color-fg-tertiary)',\n 'fg-disabled': 'var(--color-fg-disabled)',\n 'fg-inverse': 'var(--color-fg-inverse)',\n 'fg-brand': 'var(--color-fg-brand)',\n 'fg-info': 'var(--color-fg-info)',\n 'fg-success': 'var(--color-fg-success)',\n 'fg-warning': 'var(--color-fg-warning)',\n 'fg-danger': 'var(--color-fg-danger)',\n\n 'border-default': 'var(--color-border-default)',\n 'border-subtle': 'var(--color-border-subtle)',\n 'border-strong': 'var(--color-border-strong)',\n 'border-brand': 'var(--color-border-brand)',\n\n 'icon-primary': 'var(--color-icon-primary)',\n 'icon-secondary': 'var(--color-icon-secondary)',\n 'icon-inverse': 'var(--color-icon-inverse)',\n 'icon-brand': 'var(--color-icon-brand)',\n 'icon-info': 'var(--color-icon-info)',\n 'icon-danger': 'var(--color-icon-danger)',\n 'icon-warning': 'var(--color-icon-warning)',\n} as const;\n\nexport const tailwindBorderRadius = {\n xs: 'var(--radius-xs)',\n sm: 'var(--radius-sm)',\n md: 'var(--radius-md)',\n lg: 'var(--radius-lg)',\n xl: 'var(--radius-xl)',\n '2xl': 'var(--radius-2xl)',\n '3xl': 'var(--radius-3xl)',\n full: 'var(--radius-full)',\n} as const;\n\nexport const tailwindBoxShadow = {\n z1: 'var(--shadow-z1)',\n z2: 'var(--shadow-z2)',\n z3: 'var(--shadow-z3)',\n z4: 'var(--shadow-z4)',\n z5: 'var(--shadow-z5)',\n} as const;\n\nexport const tailwindFontFamily = {\n ps: 'var(--font-ps)',\n sans: 'var(--font-sans)',\n} as const;\n\nconst textStyle = (name: string) => [`var(--text-${name})`, { lineHeight: `var(--text-${name}--line-height)` }];\n\nexport const tailwindFontSize = {\n 'h-xl': textStyle('h-xl'),\n 'h-lg': textStyle('h-lg'),\n 'h-md': textStyle('h-md'),\n 'h-std': textStyle('h-std'),\n 'h-sm': textStyle('h-sm'),\n 'h-xs': textStyle('h-xs'),\n\n 'p-lg': textStyle('p-lg'),\n 'p-md': textStyle('p-md'),\n 'p-std': textStyle('p-std'),\n 'p-sm': textStyle('p-sm'),\n 'p-xs': textStyle('p-xs'),\n\n 'label-lg': textStyle('label-lg'),\n 'label-md': textStyle('label-md'),\n 'label-std': textStyle('label-std'),\n 'label-sm': textStyle('label-sm'),\n 'label-xs': textStyle('label-xs'),\n 'label-xxs': textStyle('label-xxs'),\n} as const;\n","import {\n tailwindBorderRadius,\n tailwindBoxShadow,\n tailwindColors,\n tailwindFontFamily,\n tailwindFontSize,\n} from './tokens';\n\n/**\n * Minimal shape of the config fragment we export. Kept local instead of\n * importing Tailwind's own config type so this file has zero build-time\n * dependency on `tailwindcss` internals — it's just plain data.\n */\nexport interface UiPreset {\n darkMode: 'class';\n theme: {\n extend: {\n colors: typeof tailwindColors;\n borderRadius: typeof tailwindBorderRadius;\n boxShadow: typeof tailwindBoxShadow;\n fontFamily: typeof tailwindFontFamily;\n fontSize: typeof tailwindFontSize;\n };\n };\n}\n\n/**\n * Tailwind preset for consumer apps still on a JS config (Tailwind v3, or\n * v4 via the `@config` compatibility directive). Spread it into your own\n * config's `presets` array:\n *\n * ```js\n * // tailwind.config.js\n * import { uiPreset } from '@ps-tools/ui/preset';\n *\n * export default {\n * presets: [uiPreset],\n * content: [\n * './src/**\\/*.{ts,tsx}',\n * './node_modules/@ps-tools/ui/dist/**\\/*.js',\n * ],\n * };\n * ```\n *\n * Native Tailwind v4 CSS-config consumers don't need this — importing\n * `@ps-tools/ui/styles.css` already registers every token via `@theme inline`.\n */\nexport const uiPreset: UiPreset = {\n darkMode: 'class',\n theme: {\n extend: {\n colors: tailwindColors,\n borderRadius: tailwindBorderRadius,\n boxShadow: tailwindBoxShadow,\n fontFamily: tailwindFontFamily,\n fontSize: tailwindFontSize,\n },\n },\n};\n\nexport default uiPreset;\n"],"mappings":";AAYA,IAAM,KAAc,GAAc,MAChC,OAAO,YAAY,EAAM,KAAK,MAAS,CAAC,GAAM,eAAe,EAAK,GAAG,EAAK,EAAE,CAAC,CAAC,GAE1E,IAAc;CAAC;CAAI;CAAI;CAAI;CAAI;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG,GAC1E,IAAa;CAAC;CAAI;CAAI;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG,GACjE,IAAW;CAAC;CAAI;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG,GAIpD,IAAiB;CAC5B,OAAO;CACP,OAAO,EAAW,SAAS,CAAW;CACtC,MAAM,EAAW,QAAQ,CAAU;CACnC,OAAO,EAAW,SAAS,CAAQ;CACnC,MAAM,EAAW,QAAQ,CAAQ;CACjC,QAAQ,EAAW,UAAU;EATT;EAAI;EAAI;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;CASvC,CAAY;CACzC,MAAM,EAAW,QAAQ,CAAQ;CACjC,KAAK,EAAW,OAAO;EAVN;EAAI;EAAI;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;CAU1C,CAAS;CAChC,QAAQ,EAAW,UAAU,CAAQ;CAGrC,cAAc;CACd,gBAAgB;CAChB,aAAa;CACb,oBAAoB;CACpB,mBAAmB;CACnB,sBAAsB;CACtB,sBAAsB;CACtB,qBAAqB;CAErB,cAAc;CACd,gBAAgB;CAChB,eAAe;CACf,eAAe;CACf,cAAc;CACd,YAAY;CACZ,WAAW;CACX,cAAc;CACd,cAAc;CACd,aAAa;CAEb,kBAAkB;CAClB,iBAAiB;CACjB,iBAAiB;CACjB,gBAAgB;CAEhB,gBAAgB;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,cAAc;CACd,aAAa;CACb,eAAe;CACf,gBAAgB;AAClB,GAEa,IAAuB;CAClC,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,MAAM;AACR,GAEa,IAAoB;CAC/B,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEa,IAAqB;CAChC,IAAI;CACJ,MAAM;AACR,GAEM,KAAa,MAAiB,CAAC,cAAc,EAAK,IAAI,EAAE,YAAY,cAAc,EAAK,gBAAgB,CAAC,GC5CjG,IAAqB;CAChC,UAAU;CACV,OAAO,EACL,QAAQ;EACN,QAAQ;EACR,cAAc;EACd,WAAW;EACX,YAAY;EACZ,UAAU;GDuCd,QAAQ,EAAU,MAAM;GACxB,QAAQ,EAAU,MAAM;GACxB,QAAQ,EAAU,MAAM;GACxB,SAAS,EAAU,OAAO;GAC1B,QAAQ,EAAU,MAAM;GACxB,QAAQ,EAAU,MAAM;GAExB,QAAQ,EAAU,MAAM;GACxB,QAAQ,EAAU,MAAM;GACxB,SAAS,EAAU,OAAO;GAC1B,QAAQ,EAAU,MAAM;GACxB,QAAQ,EAAU,MAAM;GAExB,YAAY,EAAU,UAAU;GAChC,YAAY,EAAU,UAAU;GAChC,aAAa,EAAU,WAAW;GAClC,YAAY,EAAU,UAAU;GAChC,YAAY,EAAU,UAAU;GAChC,aAAa,EAAU,WAAW;ECzDpB;CACZ,EACF;AACF"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind `theme.extend`-shaped token map, for consumer apps still using a
|
|
3
|
+
* JS Tailwind config (v3-style, or v4 via the `@config` compatibility
|
|
4
|
+
* directive). Every value points at the CSS custom properties defined in
|
|
5
|
+
* `styles/tokens.css` / `styles/theme.css` — never a hardcoded value — so
|
|
6
|
+
* this stays correct regardless of light/dark mode or future palette edits.
|
|
7
|
+
*
|
|
8
|
+
* Consumers on native Tailwind v4 CSS config don't need this file at all:
|
|
9
|
+
* importing `@ps-tools/ui/styles.css` already registers these as Tailwind
|
|
10
|
+
* theme values via `@theme`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const tailwindColors: {
|
|
13
|
+
readonly white: "var(--color-white)";
|
|
14
|
+
readonly brand: {
|
|
15
|
+
[k: string]: string;
|
|
16
|
+
};
|
|
17
|
+
readonly gray: {
|
|
18
|
+
[k: string]: string;
|
|
19
|
+
};
|
|
20
|
+
readonly green: {
|
|
21
|
+
[k: string]: string;
|
|
22
|
+
};
|
|
23
|
+
readonly blue: {
|
|
24
|
+
[k: string]: string;
|
|
25
|
+
};
|
|
26
|
+
readonly purple: {
|
|
27
|
+
[k: string]: string;
|
|
28
|
+
};
|
|
29
|
+
readonly pink: {
|
|
30
|
+
[k: string]: string;
|
|
31
|
+
};
|
|
32
|
+
readonly red: {
|
|
33
|
+
[k: string]: string;
|
|
34
|
+
};
|
|
35
|
+
readonly yellow: {
|
|
36
|
+
[k: string]: string;
|
|
37
|
+
};
|
|
38
|
+
readonly 'bg-default': "var(--color-bg-default)";
|
|
39
|
+
readonly 'bg-container': "var(--color-bg-container)";
|
|
40
|
+
readonly 'bg-subtle': "var(--color-bg-subtle)";
|
|
41
|
+
readonly 'bg-brand-lighter': "var(--color-bg-brand-lighter)";
|
|
42
|
+
readonly 'bg-info-lighter': "var(--color-bg-info-lighter)";
|
|
43
|
+
readonly 'bg-success-lighter': "var(--color-bg-success-lighter)";
|
|
44
|
+
readonly 'bg-warning-lighter': "var(--color-bg-warning-lighter)";
|
|
45
|
+
readonly 'bg-danger-lighter': "var(--color-bg-danger-lighter)";
|
|
46
|
+
readonly 'fg-default': "var(--color-fg-default)";
|
|
47
|
+
readonly 'fg-secondary': "var(--color-fg-secondary)";
|
|
48
|
+
readonly 'fg-tertiary': "var(--color-fg-tertiary)";
|
|
49
|
+
readonly 'fg-disabled': "var(--color-fg-disabled)";
|
|
50
|
+
readonly 'fg-inverse': "var(--color-fg-inverse)";
|
|
51
|
+
readonly 'fg-brand': "var(--color-fg-brand)";
|
|
52
|
+
readonly 'fg-info': "var(--color-fg-info)";
|
|
53
|
+
readonly 'fg-success': "var(--color-fg-success)";
|
|
54
|
+
readonly 'fg-warning': "var(--color-fg-warning)";
|
|
55
|
+
readonly 'fg-danger': "var(--color-fg-danger)";
|
|
56
|
+
readonly 'border-default': "var(--color-border-default)";
|
|
57
|
+
readonly 'border-subtle': "var(--color-border-subtle)";
|
|
58
|
+
readonly 'border-strong': "var(--color-border-strong)";
|
|
59
|
+
readonly 'border-brand': "var(--color-border-brand)";
|
|
60
|
+
readonly 'icon-primary': "var(--color-icon-primary)";
|
|
61
|
+
readonly 'icon-secondary': "var(--color-icon-secondary)";
|
|
62
|
+
readonly 'icon-inverse': "var(--color-icon-inverse)";
|
|
63
|
+
readonly 'icon-brand': "var(--color-icon-brand)";
|
|
64
|
+
readonly 'icon-info': "var(--color-icon-info)";
|
|
65
|
+
readonly 'icon-danger': "var(--color-icon-danger)";
|
|
66
|
+
readonly 'icon-warning': "var(--color-icon-warning)";
|
|
67
|
+
};
|
|
68
|
+
export declare const tailwindBorderRadius: {
|
|
69
|
+
readonly xs: "var(--radius-xs)";
|
|
70
|
+
readonly sm: "var(--radius-sm)";
|
|
71
|
+
readonly md: "var(--radius-md)";
|
|
72
|
+
readonly lg: "var(--radius-lg)";
|
|
73
|
+
readonly xl: "var(--radius-xl)";
|
|
74
|
+
readonly '2xl': "var(--radius-2xl)";
|
|
75
|
+
readonly '3xl': "var(--radius-3xl)";
|
|
76
|
+
readonly full: "var(--radius-full)";
|
|
77
|
+
};
|
|
78
|
+
export declare const tailwindBoxShadow: {
|
|
79
|
+
readonly z1: "var(--shadow-z1)";
|
|
80
|
+
readonly z2: "var(--shadow-z2)";
|
|
81
|
+
readonly z3: "var(--shadow-z3)";
|
|
82
|
+
readonly z4: "var(--shadow-z4)";
|
|
83
|
+
readonly z5: "var(--shadow-z5)";
|
|
84
|
+
};
|
|
85
|
+
export declare const tailwindFontFamily: {
|
|
86
|
+
readonly ps: "var(--font-ps)";
|
|
87
|
+
readonly sans: "var(--font-sans)";
|
|
88
|
+
};
|
|
89
|
+
export declare const tailwindFontSize: {
|
|
90
|
+
readonly 'h-xl': (string | {
|
|
91
|
+
lineHeight: string;
|
|
92
|
+
})[];
|
|
93
|
+
readonly 'h-lg': (string | {
|
|
94
|
+
lineHeight: string;
|
|
95
|
+
})[];
|
|
96
|
+
readonly 'h-md': (string | {
|
|
97
|
+
lineHeight: string;
|
|
98
|
+
})[];
|
|
99
|
+
readonly 'h-std': (string | {
|
|
100
|
+
lineHeight: string;
|
|
101
|
+
})[];
|
|
102
|
+
readonly 'h-sm': (string | {
|
|
103
|
+
lineHeight: string;
|
|
104
|
+
})[];
|
|
105
|
+
readonly 'h-xs': (string | {
|
|
106
|
+
lineHeight: string;
|
|
107
|
+
})[];
|
|
108
|
+
readonly 'p-lg': (string | {
|
|
109
|
+
lineHeight: string;
|
|
110
|
+
})[];
|
|
111
|
+
readonly 'p-md': (string | {
|
|
112
|
+
lineHeight: string;
|
|
113
|
+
})[];
|
|
114
|
+
readonly 'p-std': (string | {
|
|
115
|
+
lineHeight: string;
|
|
116
|
+
})[];
|
|
117
|
+
readonly 'p-sm': (string | {
|
|
118
|
+
lineHeight: string;
|
|
119
|
+
})[];
|
|
120
|
+
readonly 'p-xs': (string | {
|
|
121
|
+
lineHeight: string;
|
|
122
|
+
})[];
|
|
123
|
+
readonly 'label-lg': (string | {
|
|
124
|
+
lineHeight: string;
|
|
125
|
+
})[];
|
|
126
|
+
readonly 'label-md': (string | {
|
|
127
|
+
lineHeight: string;
|
|
128
|
+
})[];
|
|
129
|
+
readonly 'label-std': (string | {
|
|
130
|
+
lineHeight: string;
|
|
131
|
+
})[];
|
|
132
|
+
readonly 'label-sm': (string | {
|
|
133
|
+
lineHeight: string;
|
|
134
|
+
})[];
|
|
135
|
+
readonly 'label-xs': (string | {
|
|
136
|
+
lineHeight: string;
|
|
137
|
+
})[];
|
|
138
|
+
readonly 'label-xxs': (string | {
|
|
139
|
+
lineHeight: string;
|
|
140
|
+
})[];
|
|
141
|
+
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color primitives and semantic theme tokens.
|
|
3
|
+
*
|
|
4
|
+
* Ported from the People Space design system
|
|
5
|
+
* (packages/design-system/src/tokens/colors.css + aliases.css) — this is
|
|
6
|
+
* the source of truth for the design system's color palette. Values are
|
|
7
|
+
* mirrored (by hand) into `src/styles/tokens.css` and `src/styles/theme.css`
|
|
8
|
+
* as CSS custom properties, since the library ships a real Tailwind theme
|
|
9
|
+
* rather than a JS-only token system.
|
|
10
|
+
*/
|
|
11
|
+
export declare const brand: {
|
|
12
|
+
readonly 900: "#31531C";
|
|
13
|
+
readonly 800: "#416E26";
|
|
14
|
+
readonly 700: "#518A2F";
|
|
15
|
+
readonly 600: "#61A539";
|
|
16
|
+
readonly 500: "#72BF44";
|
|
17
|
+
readonly 400: "#80C557";
|
|
18
|
+
readonly 300: "#8ECC69";
|
|
19
|
+
readonly 200: "#9CD27C";
|
|
20
|
+
readonly 100: "#AAD98F";
|
|
21
|
+
readonly 50: "#B8DFA2";
|
|
22
|
+
readonly 40: "#CAE7B9";
|
|
23
|
+
readonly 30: "#DBEFD1";
|
|
24
|
+
readonly 20: "#EDF7E8";
|
|
25
|
+
};
|
|
26
|
+
export declare const gray: {
|
|
27
|
+
readonly 900: "#0e121b";
|
|
28
|
+
readonly 800: "#222530";
|
|
29
|
+
readonly 700: "#2b303b";
|
|
30
|
+
readonly 600: "#525866";
|
|
31
|
+
readonly 500: "#717784";
|
|
32
|
+
readonly 400: "#99a0ae";
|
|
33
|
+
readonly 300: "#cacfd8";
|
|
34
|
+
readonly 200: "#e1e4ea";
|
|
35
|
+
readonly 100: "#f2f5f8";
|
|
36
|
+
readonly 50: "#f5f7fa";
|
|
37
|
+
readonly 20: "#f7f9fc";
|
|
38
|
+
};
|
|
39
|
+
export declare const white = "#FEFEFE";
|
|
40
|
+
export declare const green: {
|
|
41
|
+
readonly 900: "#0b4627";
|
|
42
|
+
readonly 800: "#0f5c33";
|
|
43
|
+
readonly 700: "#3D8B46";
|
|
44
|
+
readonly 600: "#199754";
|
|
45
|
+
readonly 500: "#1fc16b";
|
|
46
|
+
readonly 400: "#5ed495";
|
|
47
|
+
readonly 300: "#83dfae";
|
|
48
|
+
readonly 200: "#aeeacb";
|
|
49
|
+
readonly 100: "#d0f5e1";
|
|
50
|
+
readonly 50: "#e0faec";
|
|
51
|
+
};
|
|
52
|
+
export declare const blue: {
|
|
53
|
+
readonly 900: "#2443B8";
|
|
54
|
+
readonly 800: "#2E63D6";
|
|
55
|
+
readonly 700: "#3475E8";
|
|
56
|
+
readonly 600: "#3C88F7";
|
|
57
|
+
readonly 500: "#4396F7";
|
|
58
|
+
readonly 400: "#54A6F8";
|
|
59
|
+
readonly 300: "#71B6F9";
|
|
60
|
+
readonly 200: "#9ACAFA";
|
|
61
|
+
readonly 100: "#C1DEFC";
|
|
62
|
+
readonly 50: "#E6F2FE";
|
|
63
|
+
};
|
|
64
|
+
export declare const purple: {
|
|
65
|
+
readonly 900: "#081FA6";
|
|
66
|
+
readonly 800: "#0E2AB2";
|
|
67
|
+
readonly 700: "#2431B9";
|
|
68
|
+
readonly 600: "#3838C1";
|
|
69
|
+
readonly 500: "#453DC7";
|
|
70
|
+
readonly 400: "#6559D0";
|
|
71
|
+
readonly 300: "#8377D7";
|
|
72
|
+
readonly 200: "#A89DE2";
|
|
73
|
+
readonly 100: "#CBC4ED";
|
|
74
|
+
readonly 50: "#EAE7F7";
|
|
75
|
+
readonly 20: "#F5F3FB";
|
|
76
|
+
};
|
|
77
|
+
export declare const pink: {
|
|
78
|
+
readonly 900: "#4A0A20";
|
|
79
|
+
readonly 800: "#79012F";
|
|
80
|
+
readonly 700: "#A2023F";
|
|
81
|
+
readonly 600: "#AD0244";
|
|
82
|
+
readonly 500: "#CA024F";
|
|
83
|
+
readonly 400: "#F50260";
|
|
84
|
+
readonly 300: "#FD2779";
|
|
85
|
+
readonly 200: "#FE7DAF";
|
|
86
|
+
readonly 100: "#FEA8C9";
|
|
87
|
+
readonly 50: "#FFD4E4";
|
|
88
|
+
};
|
|
89
|
+
export declare const red: {
|
|
90
|
+
readonly 900: "#8b1822";
|
|
91
|
+
readonly 800: "#ad1f2b";
|
|
92
|
+
readonly 700: "#d02533";
|
|
93
|
+
readonly 600: "#e93544";
|
|
94
|
+
readonly 500: "#fb3748";
|
|
95
|
+
readonly 400: "#ff6875";
|
|
96
|
+
readonly 300: "#ff97a0";
|
|
97
|
+
readonly 200: "#ffc0c5";
|
|
98
|
+
readonly 100: "#ffd5d8";
|
|
99
|
+
readonly 50: "#ffebec";
|
|
100
|
+
readonly 20: "#fff4f4";
|
|
101
|
+
};
|
|
102
|
+
export declare const yellow: {
|
|
103
|
+
readonly 900: "#EB7520";
|
|
104
|
+
readonly 800: "#ED912A";
|
|
105
|
+
readonly 700: "#EEA02F";
|
|
106
|
+
readonly 600: "#F0B134";
|
|
107
|
+
readonly 500: "#F1BE39";
|
|
108
|
+
readonly 400: "#F2C74A";
|
|
109
|
+
readonly 300: "#F4D264";
|
|
110
|
+
readonly 200: "#F7DE8E";
|
|
111
|
+
readonly 100: "#FAEBB9";
|
|
112
|
+
readonly 50: "#FDF7E4";
|
|
113
|
+
};
|
|
114
|
+
export declare const colorPrimitives: {
|
|
115
|
+
readonly brand: {
|
|
116
|
+
readonly 900: "#31531C";
|
|
117
|
+
readonly 800: "#416E26";
|
|
118
|
+
readonly 700: "#518A2F";
|
|
119
|
+
readonly 600: "#61A539";
|
|
120
|
+
readonly 500: "#72BF44";
|
|
121
|
+
readonly 400: "#80C557";
|
|
122
|
+
readonly 300: "#8ECC69";
|
|
123
|
+
readonly 200: "#9CD27C";
|
|
124
|
+
readonly 100: "#AAD98F";
|
|
125
|
+
readonly 50: "#B8DFA2";
|
|
126
|
+
readonly 40: "#CAE7B9";
|
|
127
|
+
readonly 30: "#DBEFD1";
|
|
128
|
+
readonly 20: "#EDF7E8";
|
|
129
|
+
};
|
|
130
|
+
readonly gray: {
|
|
131
|
+
readonly 900: "#0e121b";
|
|
132
|
+
readonly 800: "#222530";
|
|
133
|
+
readonly 700: "#2b303b";
|
|
134
|
+
readonly 600: "#525866";
|
|
135
|
+
readonly 500: "#717784";
|
|
136
|
+
readonly 400: "#99a0ae";
|
|
137
|
+
readonly 300: "#cacfd8";
|
|
138
|
+
readonly 200: "#e1e4ea";
|
|
139
|
+
readonly 100: "#f2f5f8";
|
|
140
|
+
readonly 50: "#f5f7fa";
|
|
141
|
+
readonly 20: "#f7f9fc";
|
|
142
|
+
};
|
|
143
|
+
readonly green: {
|
|
144
|
+
readonly 900: "#0b4627";
|
|
145
|
+
readonly 800: "#0f5c33";
|
|
146
|
+
readonly 700: "#3D8B46";
|
|
147
|
+
readonly 600: "#199754";
|
|
148
|
+
readonly 500: "#1fc16b";
|
|
149
|
+
readonly 400: "#5ed495";
|
|
150
|
+
readonly 300: "#83dfae";
|
|
151
|
+
readonly 200: "#aeeacb";
|
|
152
|
+
readonly 100: "#d0f5e1";
|
|
153
|
+
readonly 50: "#e0faec";
|
|
154
|
+
};
|
|
155
|
+
readonly blue: {
|
|
156
|
+
readonly 900: "#2443B8";
|
|
157
|
+
readonly 800: "#2E63D6";
|
|
158
|
+
readonly 700: "#3475E8";
|
|
159
|
+
readonly 600: "#3C88F7";
|
|
160
|
+
readonly 500: "#4396F7";
|
|
161
|
+
readonly 400: "#54A6F8";
|
|
162
|
+
readonly 300: "#71B6F9";
|
|
163
|
+
readonly 200: "#9ACAFA";
|
|
164
|
+
readonly 100: "#C1DEFC";
|
|
165
|
+
readonly 50: "#E6F2FE";
|
|
166
|
+
};
|
|
167
|
+
readonly purple: {
|
|
168
|
+
readonly 900: "#081FA6";
|
|
169
|
+
readonly 800: "#0E2AB2";
|
|
170
|
+
readonly 700: "#2431B9";
|
|
171
|
+
readonly 600: "#3838C1";
|
|
172
|
+
readonly 500: "#453DC7";
|
|
173
|
+
readonly 400: "#6559D0";
|
|
174
|
+
readonly 300: "#8377D7";
|
|
175
|
+
readonly 200: "#A89DE2";
|
|
176
|
+
readonly 100: "#CBC4ED";
|
|
177
|
+
readonly 50: "#EAE7F7";
|
|
178
|
+
readonly 20: "#F5F3FB";
|
|
179
|
+
};
|
|
180
|
+
readonly pink: {
|
|
181
|
+
readonly 900: "#4A0A20";
|
|
182
|
+
readonly 800: "#79012F";
|
|
183
|
+
readonly 700: "#A2023F";
|
|
184
|
+
readonly 600: "#AD0244";
|
|
185
|
+
readonly 500: "#CA024F";
|
|
186
|
+
readonly 400: "#F50260";
|
|
187
|
+
readonly 300: "#FD2779";
|
|
188
|
+
readonly 200: "#FE7DAF";
|
|
189
|
+
readonly 100: "#FEA8C9";
|
|
190
|
+
readonly 50: "#FFD4E4";
|
|
191
|
+
};
|
|
192
|
+
readonly red: {
|
|
193
|
+
readonly 900: "#8b1822";
|
|
194
|
+
readonly 800: "#ad1f2b";
|
|
195
|
+
readonly 700: "#d02533";
|
|
196
|
+
readonly 600: "#e93544";
|
|
197
|
+
readonly 500: "#fb3748";
|
|
198
|
+
readonly 400: "#ff6875";
|
|
199
|
+
readonly 300: "#ff97a0";
|
|
200
|
+
readonly 200: "#ffc0c5";
|
|
201
|
+
readonly 100: "#ffd5d8";
|
|
202
|
+
readonly 50: "#ffebec";
|
|
203
|
+
readonly 20: "#fff4f4";
|
|
204
|
+
};
|
|
205
|
+
readonly yellow: {
|
|
206
|
+
readonly 900: "#EB7520";
|
|
207
|
+
readonly 800: "#ED912A";
|
|
208
|
+
readonly 700: "#EEA02F";
|
|
209
|
+
readonly 600: "#F0B134";
|
|
210
|
+
readonly 500: "#F1BE39";
|
|
211
|
+
readonly 400: "#F2C74A";
|
|
212
|
+
readonly 300: "#F4D264";
|
|
213
|
+
readonly 200: "#F7DE8E";
|
|
214
|
+
readonly 100: "#FAEBB9";
|
|
215
|
+
readonly 50: "#FDF7E4";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export type ColorScale = typeof gray;
|
|
219
|
+
export type ColorPrimitives = typeof colorPrimitives;
|
|
220
|
+
/**
|
|
221
|
+
* Semantic aliases — components and consumer apps reference these, never
|
|
222
|
+
* the raw scales above directly. Mirrors src/styles/theme.css.
|
|
223
|
+
*/
|
|
224
|
+
export declare const lightTheme: {
|
|
225
|
+
readonly bgDefault: "#FEFEFE";
|
|
226
|
+
readonly bgContainer: "#f5f7fa";
|
|
227
|
+
readonly bgSubtle: "#f2f5f8";
|
|
228
|
+
readonly bgBrandLighter: "#EDF7E8";
|
|
229
|
+
readonly bgInfoLighter: "#E6F2FE";
|
|
230
|
+
readonly bgSuccessLighter: "#e0faec";
|
|
231
|
+
readonly bgWarningLighter: "#FDF7E4";
|
|
232
|
+
readonly bgDangerLighter: "#ffebec";
|
|
233
|
+
readonly fgDefault: "#0e121b";
|
|
234
|
+
readonly fgSecondary: "#525866";
|
|
235
|
+
readonly fgTertiary: "#717784";
|
|
236
|
+
readonly fgDisabled: "#99a0ae";
|
|
237
|
+
readonly fgInverse: "#FEFEFE";
|
|
238
|
+
readonly fgBrand: "#72BF44";
|
|
239
|
+
readonly fgInfo: "#3C88F7";
|
|
240
|
+
readonly fgSuccess: "#199754";
|
|
241
|
+
readonly fgWarning: "#ED912A";
|
|
242
|
+
readonly fgDanger: "#ad1f2b";
|
|
243
|
+
readonly borderDefault: "#e1e4ea";
|
|
244
|
+
readonly borderSubtle: "#f2f5f8";
|
|
245
|
+
readonly borderStrong: "#cacfd8";
|
|
246
|
+
readonly borderBrand: "#72BF44";
|
|
247
|
+
readonly iconPrimary: "#0e121b";
|
|
248
|
+
readonly iconSecondary: "#525866";
|
|
249
|
+
readonly iconInverse: "#FEFEFE";
|
|
250
|
+
readonly iconBrand: "#72BF44";
|
|
251
|
+
readonly iconInfo: "#3C88F7";
|
|
252
|
+
readonly iconDanger: "#ad1f2b";
|
|
253
|
+
readonly iconWarning: "#ED912A";
|
|
254
|
+
};
|
|
255
|
+
export declare const darkTheme: {
|
|
256
|
+
readonly bgDefault: "#0B1120";
|
|
257
|
+
readonly bgContainer: "#0F172A";
|
|
258
|
+
readonly bgSubtle: "#121C30";
|
|
259
|
+
readonly bgBrandLighter: "rgba(114, 191, 68, 0.15)";
|
|
260
|
+
readonly bgInfoLighter: "rgba(67, 150, 247, 0.15)";
|
|
261
|
+
readonly bgSuccessLighter: "rgba(31, 193, 107, 0.15)";
|
|
262
|
+
readonly bgWarningLighter: "rgba(237, 145, 42, 0.15)";
|
|
263
|
+
readonly bgDangerLighter: "rgba(230, 27, 0, 0.15)";
|
|
264
|
+
readonly fgDefault: "#FEFEFE";
|
|
265
|
+
readonly fgSecondary: "#99a0ae";
|
|
266
|
+
readonly fgTertiary: "#717784";
|
|
267
|
+
readonly fgDisabled: "#525866";
|
|
268
|
+
readonly borderDefault: "rgba(255, 255, 255, 0.05)";
|
|
269
|
+
readonly borderSubtle: "rgba(255, 255, 255, 0.03)";
|
|
270
|
+
readonly borderStrong: "rgba(255, 255, 255, 0.10)";
|
|
271
|
+
readonly iconPrimary: "#FEFEFE";
|
|
272
|
+
readonly iconSecondary: "#99a0ae";
|
|
273
|
+
readonly fgInverse: "#FEFEFE";
|
|
274
|
+
readonly fgBrand: "#72BF44";
|
|
275
|
+
readonly fgInfo: "#3C88F7";
|
|
276
|
+
readonly fgSuccess: "#199754";
|
|
277
|
+
readonly fgWarning: "#ED912A";
|
|
278
|
+
readonly fgDanger: "#ad1f2b";
|
|
279
|
+
readonly borderBrand: "#72BF44";
|
|
280
|
+
readonly iconInverse: "#FEFEFE";
|
|
281
|
+
readonly iconBrand: "#72BF44";
|
|
282
|
+
readonly iconInfo: "#3C88F7";
|
|
283
|
+
readonly iconDanger: "#ad1f2b";
|
|
284
|
+
readonly iconWarning: "#ED912A";
|
|
285
|
+
};
|
|
286
|
+
export type SemanticTheme = typeof lightTheme;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Border radii, mirrored as `--radius-*` in src/styles/tokens.css. Ported
|
|
3
|
+
* from the People Space design system (packages/design-system/src/tokens/radii.css)
|
|
4
|
+
* as a fixed step scale rather than a single calc()-derived base value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const radius: {
|
|
7
|
+
readonly xs: "2px";
|
|
8
|
+
readonly sm: "4px";
|
|
9
|
+
readonly md: "8px";
|
|
10
|
+
readonly lg: "12px";
|
|
11
|
+
readonly xl: "16px";
|
|
12
|
+
readonly '2xl': "20px";
|
|
13
|
+
readonly '3xl': "24px";
|
|
14
|
+
readonly full: "9999px";
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Elevation scale, mirrored as `--shadow-z*` in src/styles/tokens.css.
|
|
3
|
+
* Ported from the People Space design system
|
|
4
|
+
* (packages/design-system/src/tokens/shadows.css) — z4 verified from
|
|
5
|
+
* Figma, others interpolated.
|
|
6
|
+
*/
|
|
7
|
+
export declare const shadows: {
|
|
8
|
+
readonly z1: "0 1px 2px 0 rgba(0, 0, 0, 0.06)";
|
|
9
|
+
readonly z2: "0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04)";
|
|
10
|
+
readonly z3: "0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.04)";
|
|
11
|
+
readonly z4: "0 1px 4px 0 rgba(0, 0, 0, 0.12), 0 12px 16px 0 rgba(0, 0, 0, 0.10), 0 3px 5px 0 rgba(0, 0, 0, 0.12)";
|
|
12
|
+
readonly z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)";
|
|
13
|
+
};
|