@aziontech/theme 1.13.0 → 2.0.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.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/package.json +19 -21
  3. package/src/scripts/build-tokens.mjs +391 -0
  4. package/src/scripts/compile-primitives.js +165 -0
  5. package/src/scripts/compile-theme.js +117 -0
  6. package/src/{tokens/build → scripts}/css-vars.js +10 -9
  7. package/src/{tokens/build → scripts}/resolve.js +2 -0
  8. package/src/tests/primitives.html +293 -0
  9. package/src/tests/theme.html +310 -0
  10. package/src/tests/tokens.html +84 -0
  11. package/src/tokens/README.md +306 -272
  12. package/src/tokens/index.js +4 -12
  13. package/src/tokens/primitives/animations/animate.js +8 -0
  14. package/src/tokens/primitives/animations/ease.js +7 -0
  15. package/src/tokens/primitives/border-widths.js +9 -0
  16. package/src/tokens/primitives/breakpoints.js +9 -0
  17. package/src/tokens/primitives/colors/alpha.js +104 -0
  18. package/src/tokens/primitives/colors/brand.js +40 -0
  19. package/src/tokens/primitives/colors/colors.js +142 -0
  20. package/src/tokens/primitives/effects/blur.js +11 -0
  21. package/src/tokens/primitives/effects/drop-shadow.js +10 -0
  22. package/src/tokens/primitives/effects/inset-shadow.js +7 -0
  23. package/src/tokens/primitives/effects/opacity.js +8 -0
  24. package/src/tokens/primitives/effects/perspective.js +9 -0
  25. package/src/tokens/primitives/effects/shadow.js +11 -0
  26. package/src/tokens/primitives/ring-offset.js +5 -0
  27. package/src/tokens/primitives/shape/aspect-video.js +3 -0
  28. package/src/tokens/primitives/shape/container.js +17 -0
  29. package/src/tokens/primitives/shape/height.js +32 -0
  30. package/src/tokens/primitives/shape/radius.js +13 -0
  31. package/src/tokens/primitives/shape/shape.js +12 -0
  32. package/src/tokens/primitives/shape/size.js +32 -0
  33. package/src/tokens/primitives/shape/spacing.js +33 -0
  34. package/src/tokens/primitives/shape/width.js +19 -0
  35. package/src/tokens/primitives/typography/font-family.js +7 -0
  36. package/src/tokens/primitives/typography/font-size.js +30 -0
  37. package/src/tokens/primitives/typography/font-weight.js +13 -0
  38. package/src/tokens/primitives/typography/leading.js +9 -0
  39. package/src/tokens/primitives/typography/line-height.js +13 -0
  40. package/src/tokens/primitives/typography/tracking.js +10 -0
  41. package/src/{tailwind/semantic-animations-plugin.js → tokens/semantic/animations.js} +3 -21
  42. package/src/tokens/semantic/colors.js +138 -0
  43. package/src/tokens/semantic/containers.data.js +18 -0
  44. package/src/tokens/semantic/containers.js +70 -0
  45. package/src/tokens/semantic/spacings.data.js +18 -0
  46. package/src/tokens/semantic/spacings.js +163 -0
  47. package/src/tokens/semantic/texts.data.js +103 -0
  48. package/src/{tailwind/semantic-texts-plugin.js → tokens/semantic/texts.js} +30 -9
  49. package/src/tokens/theme/accent.js +18 -0
  50. package/src/tokens/theme/background.js +32 -0
  51. package/src/tokens/theme/border.js +18 -0
  52. package/src/tokens/theme/feedback/danger.js +16 -0
  53. package/src/tokens/theme/feedback/info.js +16 -0
  54. package/src/tokens/theme/feedback/success.js +16 -0
  55. package/src/tokens/theme/feedback/warning.js +16 -0
  56. package/src/tokens/theme/primary.js +18 -0
  57. package/src/tokens/theme/ring.js +12 -0
  58. package/src/tokens/theme/secondary.js +18 -0
  59. package/src/tokens/theme/surfaces.js +23 -0
  60. package/src/tokens/theme/text.js +18 -0
  61. package/src/tokens/theme.js +32 -0
  62. package/colors-brand.js +0 -24
  63. package/src/tailwind/semantic-colors-plugin.js +0 -91
  64. package/src/tailwind/semantic-spacing-plugin.js +0 -151
  65. package/src/tailwind/tailwind-theme.js +0 -54
  66. package/src/tokens/build/preset.js +0 -62
  67. package/src/tokens/build/tailwind-flat-colors.js +0 -75
  68. package/src/tokens/build/tailwind-helper.js +0 -12
  69. package/src/tokens/build/tailwind-plugin.js +0 -175
  70. package/src/tokens/colors-brand.js +0 -24
  71. package/src/tokens/primitives/brand.js +0 -69
  72. package/src/tokens/primitives/colors.js +0 -144
  73. package/src/tokens/semantic/backgrounds.js +0 -46
  74. package/src/tokens/semantic/borders.js +0 -44
  75. package/src/tokens/semantic/text.js +0 -48
  76. /package/src/{tokens/build → scripts}/refs.js +0 -0
@@ -1,75 +0,0 @@
1
- /**
2
- * Tailwind plugin to expose semantic colors at root level.
3
- *
4
- * This allows using classes like `text-muted` instead of `text-text-muted`.
5
- *
6
- * Usage in tailwind.config.js:
7
- * ```javascript
8
- * import { flatColorsPlugin } from '@aziontech/theme/tokens/build/tailwind-flat-colors.js';
9
- *
10
- * export default {
11
- * plugins: [flatColorsPlugin],
12
- * };
13
- * ```
14
- */
15
-
16
- import plugin from 'tailwindcss/plugin.js';
17
-
18
- export const flatColorsPlugin = plugin(({ addUtilities, addBase, theme }) => {
19
- // Add semantic text colors as root-level utilities
20
- const textColors = {
21
- '.text-default': { color: 'var(--text-default)' },
22
- '.text-muted': { color: 'var(--text-muted)' },
23
- '.text-link': { color: 'var(--text-link)' },
24
- '.text-linkHover': { color: 'var(--text-linkHover)' },
25
- '.text-code': { color: 'var(--text-code)' },
26
- '.text-primary': { color: 'var(--text-primary)' },
27
- '.text-primaryHover': { color: 'var(--text-primaryHover)' },
28
- '.text-accent': { color: 'var(--text-accent)' },
29
- '.text-accentHover': { color: 'var(--text-accentHover)' },
30
- '.text-danger': { color: 'var(--text-danger)' },
31
- '.text-dangerHover': { color: 'var(--text-dangerHover)' },
32
- '.text-warning': { color: 'var(--text-warning)' },
33
- '.text-warningHover': { color: 'var(--text-warningHover)' },
34
- '.text-success': { color: 'var(--text-success)' },
35
- '.text-successHover': { color: 'var(--text-successHover)' },
36
- };
37
-
38
- const bgColors = {
39
- '.bg-surfaceRaised': { 'background-color': 'var(--background-surfaceRaised)' },
40
- '.bg-surfaceOverlay': { 'background-color': 'var(--background-surfaceOverlay)' },
41
- '.bg-surface': { 'background-color': 'var(--background-surface)' },
42
- '.bg-canvas': { 'background-color': 'var(--background-canvas)' },
43
- '.bg-danger': { 'background-color': 'var(--background-danger)' },
44
- '.bg-dangerHover': { 'background-color': 'var(--background-dangerHover)' },
45
- '.bg-warning': { 'background-color': 'var(--background-warning)' },
46
- '.bg-warningHover': { 'background-color': 'var(--background-warningHover)' },
47
- '.bg-success': { 'background-color': 'var(--background-success)' },
48
- '.bg-successHover': { 'background-color': 'var(--background-successHover)' },
49
- '.bg-backdrop': { 'background-color': 'var(--background-backdrop)' },
50
- '.bg-primary': { 'background-color': 'var(--background-primary)' },
51
- '.bg-primaryHover': { 'background-color': 'var(--background-primaryHover)' },
52
- };
53
-
54
- const borderColors = {
55
- '.border-default': { 'border-color': 'var(--border-default)' },
56
- '.border-strong': { 'border-color': 'var(--border-strong)' },
57
- '.border-subtle': { 'border-color': 'var(--border-subtle)' },
58
- '.border-warning': { 'border-color': 'var(--border-warning)' },
59
- '.border-warningHover': { 'border-color': 'var(--border-warningHover)' },
60
- '.border-success': { 'border-color': 'var(--border-success)' },
61
- '.border-successHover': { 'border-color': 'var(--border-successHover)' },
62
- '.border-danger': { 'border-color': 'var(--border-danger)' },
63
- '.border-dangerHover': { 'border-color': 'var(--border-dangerHover)' },
64
- '.border-primary': { 'border-color': 'var(--border-primary)' },
65
- '.border-primaryHover': { 'border-color': 'var(--border-primaryHover)' },
66
- '.border-accent': { 'border-color': 'var(--border-accent)' },
67
- '.border-accentHover': { 'border-color': 'var(--border-accentHover)' },
68
- };
69
-
70
- addUtilities(textColors, ['responsive', 'hover', 'dark']);
71
- addUtilities(bgColors, ['responsive', 'hover', 'dark']);
72
- addUtilities(borderColors, ['responsive', 'hover', 'dark']);
73
- });
74
-
75
- export default flatColorsPlugin;
@@ -1,12 +0,0 @@
1
- /**
2
- * Tailwind helper for merging presets.
3
- */
4
-
5
- import { preset } from './preset.js';
6
-
7
- export const createTailwindConfig = (user) => ({
8
- ...user,
9
- presets: [...(user.presets ?? []), preset],
10
- });
11
-
12
- export default createTailwindConfig;
@@ -1,175 +0,0 @@
1
- /**
2
- * Tailwind plugin to generate static light/dark utilities from semantic tokens.
3
- *
4
- * This plugin emits concrete values for both light and dark themes,
5
- * supporting:
6
- * - Background color utilities
7
- * - Text color utilities
8
- * - Border color utilities
9
- * - Both dark selectors (.dark and .azion.azion-dark)
10
- */
11
-
12
- // Lazy-require to avoid hard dependency for consumers
13
- const plugin = (() => {
14
- try {
15
- return require('tailwindcss/plugin');
16
- } catch {
17
- return (handler) => handler;
18
- }
19
- })();
20
-
21
- import { primitives } from '../primitives/colors.js';
22
- import { surfacePrimitives, brandPrimitives } from '../primitives/brand.js';
23
- import { textSemantic } from '../semantic/text.js';
24
- import { backgroundSemantic } from '../semantic/backgrounds.js';
25
- import { borderSemantic } from '../semantic/borders.js';
26
- import { resolveRefsToCssVars } from './resolve.js';
27
-
28
- const kebab = (value) =>
29
- value
30
- .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
31
- .replace(/_/g, '-')
32
- .toLowerCase();
33
-
34
- const stripPrefix = (value, prefix) =>
35
- value.startsWith(prefix) ? value.slice(prefix.length) : value;
36
-
37
- const resolveTokenMaps = () =>
38
- resolveRefsToCssVars({
39
- primitives,
40
- surfacePrimitives,
41
- brandPrimitives,
42
- textSemantic,
43
- backgroundSemantic,
44
- borderSemantic,
45
- });
46
-
47
- const getValue = (map, key) => map[`--${key}`];
48
-
49
- const addUtility = (
50
- utilities,
51
- darkUtilities,
52
- selectors,
53
- className,
54
- property,
55
- lightValue,
56
- darkValue
57
- ) => {
58
- if (lightValue) {
59
- utilities[className] = { [property]: lightValue };
60
- }
61
- if (darkValue) {
62
- selectors.forEach((selector) => {
63
- darkUtilities[`${selector} ${className}`] = { [property]: darkValue };
64
- });
65
- }
66
- };
67
-
68
- /**
69
- * Generate semantic token utilities for light and dark modes
70
- *
71
- * Usage:
72
- * - Background: bg-layer1, bg-layer2, bg-base, bg-canvas, etc.
73
- * - Text: text-base, text-muted, text-link, text-primary, etc.
74
- * - Border: border-base, border-warning, border-danger, border-primary, etc.
75
- */
76
- export const tokenUtilities = (options = {}) => {
77
- const { light, dark } = resolveTokenMaps();
78
- const darkSelectors = [options.darkSelector ?? '.dark', ...(options.extraDarkSelectors ?? ['.azion.azion-dark'])];
79
-
80
- const utilities = {};
81
- const darkUtilities = {};
82
-
83
- // Background color utilities
84
- Object.keys(backgroundSemantic.light).forEach((key) => {
85
- const suffix = kebab(stripPrefix(key, 'bg'));
86
- const className = `.bg-${suffix}`;
87
- addUtility(
88
- utilities,
89
- darkUtilities,
90
- darkSelectors,
91
- className,
92
- 'backgroundColor',
93
- getValue(light, `background-${key}`),
94
- getValue(dark, `background-${key}`)
95
- );
96
- });
97
-
98
- // Text color utilities
99
- const hasAccent = 'textColorAccent' in textSemantic.light;
100
- const accentKey = hasAccent ? 'textColorAccent' : 'textColorSecondary';
101
- const accentHoverKey = hasAccent ? 'textColorAccentHover' : 'textColorSecondaryHover';
102
-
103
- const textMap = {
104
- base: 'textColorBase',
105
- muted: 'textColorMuted',
106
- link: 'textColorLink',
107
- code: 'textColorCode',
108
- 'muted-hover': 'textColorMutedHover',
109
- 'link-hover': 'textColorLinkHover',
110
- 'base-hover': 'textColorBaseHover',
111
- primary: 'textColorPrimary',
112
- 'primary-hover': 'textColorPrimaryHover',
113
- accent: accentKey,
114
- 'accent-hover': accentHoverKey,
115
- secondary: 'textColorSecondary',
116
- 'secondary-hover': 'textColorSecondaryHover',
117
- danger: 'textDanger',
118
- 'danger-hover': 'textDangerHover',
119
- warning: 'textWarning',
120
- 'warning-hover': 'textWarningHover',
121
- success: 'textSuccess',
122
- 'success-hover': 'textSuccessHover',
123
- };
124
-
125
- Object.entries(textMap).forEach(([name, key]) => {
126
- const className = `.text-${name}`;
127
- addUtility(
128
- utilities,
129
- darkUtilities,
130
- darkSelectors,
131
- className,
132
- 'color',
133
- getValue(light, `text-${key}`),
134
- getValue(dark, `text-${key}`)
135
- );
136
- });
137
-
138
- // Border color utilities
139
- const borderMap = {
140
- base: 'borderBase',
141
- 'base-hover': 'borderBaseHover',
142
- warning: 'borderWarning',
143
- success: 'borderSuccess',
144
- danger: 'borderDanger',
145
- primary: 'borderPrimary',
146
- 'primary-hover': 'borderPrimaryHover',
147
- secondary: 'borderSecondary',
148
- 'secondary-hover': 'borderSecondaryHover',
149
- accent: 'borderAccent',
150
- 'accent-hover': 'borderAccentHover',
151
- 'warning-hover': 'borderWarningHover',
152
- 'success-hover': 'borderSuccessHover',
153
- 'danger-hover': 'borderDangerHover',
154
- };
155
-
156
- Object.entries(borderMap).forEach(([name, key]) => {
157
- const className = `.border-${name}`;
158
- addUtility(
159
- utilities,
160
- darkUtilities,
161
- darkSelectors,
162
- className,
163
- 'borderColor',
164
- getValue(light, `border-${key}`),
165
- getValue(dark, `border-${key}`)
166
- );
167
- });
168
-
169
- return plugin(({ addUtilities }) => {
170
- addUtilities(utilities);
171
- addUtilities(darkUtilities);
172
- });
173
- };
174
-
175
- export default tokenUtilities;
@@ -1,24 +0,0 @@
1
- /**
2
- * BRAND COLORS TOKENS
3
- *
4
- * Organized brand colors consuming primitive colors.
5
- */
6
-
7
- import { primitives } from './primitives/colors.js';
8
-
9
- export const brandColors = {
10
- orange: primitives.orange[500],
11
- darkOrange: primitives.orange[600],
12
- lavander: primitives.violet[300],
13
- darkLavander: primitives.slate[900],
14
- blackLavander: primitives.slate[950],
15
- gray: primitives.neutral[200],
16
- mediumGray: primitives.neutral[500],
17
- darkGray: primitives.neutral[900],
18
- white: primitives.neutral[50],
19
- black: primitives.neutral[950],
20
- };
21
-
22
- export default {
23
- brand: brandColors,
24
- };
@@ -1,69 +0,0 @@
1
- /**
2
- * BRAND + SURFACE PRIMITIVES TOKENS
3
- *
4
- * Generated from figma-reference-tokens-studio.
5
- */
6
-
7
- import { brandColors } from '../colors-brand.js';
8
- import { primitives } from './colors.js';
9
-
10
- // Aliases:
11
- // - surfaces are neutrals
12
- // - accent is violet
13
- export const surfacePrimitives = {
14
- surface: {
15
- 0: primitives.base.white,
16
- 50: primitives.neutral[50],
17
- 100: primitives.neutral[100],
18
- 200: primitives.neutral[200],
19
- 300: primitives.neutral[300],
20
- 400: primitives.neutral[400],
21
- 500: primitives.neutral[500],
22
- 600: primitives.neutral[600],
23
- 700: primitives.neutral[700],
24
- 800: primitives.neutral[800],
25
- 900: primitives.neutral[900],
26
- 950: primitives.neutral[950]
27
- }
28
- };
29
-
30
- export const brandPrimitives = {
31
- accent: {
32
- 50: primitives.violet[50],
33
- 100: primitives.violet[100],
34
- 200: primitives.violet[200],
35
- 300: primitives.violet[300],
36
- 400: primitives.violet[400],
37
- 500: primitives.violet[500],
38
- 600: primitives.violet[600],
39
- 700: primitives.violet[700],
40
- 800: primitives.violet[800],
41
- 900: primitives.violet[900],
42
- 950: primitives.violet[950]
43
- },
44
- primary: {
45
- 50: primitives.orange[50],
46
- 100: primitives.orange[100],
47
- 200: primitives.orange[200],
48
- 300: primitives.orange[300],
49
- 400: primitives.orange[400],
50
- 500: primitives.orange[500],
51
- 600: primitives.orange[600],
52
- 700: primitives.orange[700],
53
- 800: primitives.orange[800],
54
- 900: primitives.orange[900],
55
- 950: primitives.orange[950]
56
- },
57
- absolute: {
58
- white: primitives.neutral[50],
59
- black: primitives.neutral[950]
60
- }
61
- };
62
-
63
- export { brandColors };
64
-
65
- export default {
66
- brandColors,
67
- brandPrimitives,
68
- surfacePrimitives,
69
- };
@@ -1,144 +0,0 @@
1
- /**
2
- * PRIMITIVE COLORS TOKENS
3
- *
4
- * Generated from figma-reference-tokens-studio.
5
- */
6
-
7
- export const primitives = {
8
- base: {
9
- white: '#ffffff',
10
- black: '#000000',
11
- },
12
- gray: {
13
- '50': '#F9FAFB',
14
- '100': '#F3F4F6',
15
- '200': '#E5E7EB',
16
- '300': '#D1D5DB',
17
- '400': '#9CA3AF',
18
- '500': '#6B7280',
19
- '600': '#4B5563',
20
- '700': '#374151',
21
- '800': '#1F2937',
22
- '900': '#111827',
23
- '950': '#030712',
24
- },
25
- // done violet
26
- violet: {
27
- '50': '#F6F6FF',
28
- '100': '#ECECFF',
29
- '200': '#D9D7FA',
30
- '300': '#B5B1F4',
31
- '400': '#9F9AF1',
32
- '500': '#8A84EC',
33
- '600': '#756FE5',
34
- '700': '#625BD5',
35
- '800': '#524BBB',
36
- '900': '#423F99',
37
- '950': '#343279',
38
- },
39
- orange: {
40
- '50': '#FFF5EF',
41
- '100': '#FFE7D8',
42
- '200': '#FFCFB3',
43
- '300': '#FFB180',
44
- '400': '#FF8E4D',
45
- '500': '#FE601F',
46
- '600': '#D94A03',
47
- '700': '#B03C02',
48
- '800': '#8A2F02',
49
- '900': '#692402',
50
- '950': '#401602',
51
- },
52
- slate: {
53
- '50': '#F8F7FC',
54
- '100': '#F0EFF8',
55
- '200': '#E3E1F0',
56
- '300': '#D3D2E6',
57
- '400': '#BEBBD6',
58
- '500': '#A39FBE',
59
- '600': '#8884A4',
60
- '700': '#6D698B',
61
- '800': '#534F70',
62
- '900': '#353040',
63
- '950': '#13131A',
64
- },
65
- yellow: {
66
- '50': '#FEFCE8',
67
- '100': '#FEF9C3',
68
- '200': '#FEF08A',
69
- '300': '#FDE047',
70
- '400': '#FACC15',
71
- '500': '#EAB308',
72
- '600': '#CA8A04',
73
- '700': '#A16207',
74
- '800': '#854D0E',
75
- '900': '#713F12',
76
- '950': '#422006',
77
- },
78
- green: {
79
- '50': '#F0FDF4',
80
- '100': '#DCFCE7',
81
- '200': '#BBF7D0',
82
- '300': '#86EFAC',
83
- '400': '#4ADE80',
84
- '500': '#22C55E',
85
- '600': '#16A34A',
86
- '700': '#15803D',
87
- '800': '#166534',
88
- '900': '#14532D',
89
- '950': '#052E16',
90
- },
91
- blue: {
92
- '50': '#EFF6FF',
93
- '100': '#DBEAFE',
94
- '200': '#BFDBFE',
95
- '300': '#93C5FD',
96
- '400': '#60A5FA',
97
- '500': '#3B82F6',
98
- '600': '#2563EB',
99
- '700': '#1D4ED8',
100
- '800': '#1E40AF',
101
- '900': '#1E3A8A',
102
- '950': '#172554',
103
- },
104
- neutral: {
105
- '50': '#FAFAFA',
106
- '100': '#F5F5F5',
107
- '200': '#E5E5E5',
108
- '300': '#D4D4D4',
109
- '400': '#A3A3A3',
110
- '500': '#737373',
111
- '600': '#525252',
112
- '700': '#404040',
113
- '800': '#262626',
114
- '900': '#171717',
115
- '950': '#0A0A0A',
116
- },
117
- red: {
118
- '50': '#FFE5E5',
119
- '100': '#FFCCCC',
120
- '200': '#FECACA',
121
- '300': '#FCA5A5',
122
- '400': '#F87171',
123
- '500': '#EF4444',
124
- '600': '#DC2626',
125
- '700': '#B91C1C',
126
- '800': '#991B1B',
127
- '900': '#7F1D1D',
128
- '950': '#450A0A',
129
- },
130
- alpha: {
131
- neutral: {
132
- '25': '#00000040',
133
- },
134
- brand: {
135
- primary: {
136
- '65': '#FE601F29',
137
- },
138
- },
139
- },
140
- };
141
-
142
- export default {
143
- primitives,
144
- };
@@ -1,46 +0,0 @@
1
- /**
2
- * SEMANTIC BACKGROUND TOKENS
3
- *
4
- * Generated from figma-reference-tokens-studio.
5
- */
6
-
7
- import { tokenRef } from '../build/refs.js'
8
-
9
- export const backgroundSemantic = {
10
- light: {
11
- surfaceRaised: tokenRef('brand.surfaces.surface-0'),
12
- surfaceOverlay: tokenRef('brand.surfaces.surface-50'),
13
- surface: tokenRef('brand.surfaces.surface-0'),
14
- canvas: tokenRef('brand.surfaces.surface-100'),
15
- dangerHover: tokenRef('primitives.red.400'),
16
- warningHover: tokenRef('primitives.yellow.400'),
17
- successHover: tokenRef('primitives.green.400'),
18
- success: tokenRef('primitives.green.200'),
19
- danger: tokenRef('primitives.red.200'),
20
- warning: tokenRef('primitives.yellow.200'),
21
- backdrop: tokenRef('primitives.alpha.neutral.25'),
22
- primaryHover: tokenRef('brand.primary.primary-600'),
23
- primary: tokenRef('brand.primary.primary-500'),
24
- primaryMask: tokenRef('primitives.alpha.brand.primary.65')
25
- },
26
- dark: {
27
- surfaceRaised: tokenRef('brand.surfaces.surface-800'),
28
- surfaceOverlay: tokenRef('brand.surfaces.surface-700'),
29
- surface: tokenRef('brand.surfaces.surface-900'),
30
- canvas: tokenRef('brand.surfaces.surface-950'),
31
- dangerHover: tokenRef('primitives.red.600'),
32
- warningHover: tokenRef('primitives.yellow.600'),
33
- successHover: tokenRef('primitives.green.600'),
34
- success: tokenRef('primitives.green.800'),
35
- danger: tokenRef('primitives.red.800'),
36
- warning: tokenRef('primitives.yellow.800'),
37
- backdrop: tokenRef('primitives.alpha.neutral.25'),
38
- primaryHover: tokenRef('brand.primary.primary-400'),
39
- primary: tokenRef('brand.primary.primary-500'),
40
- primaryMask: tokenRef('primitives.alpha.brand.primary.65')
41
- }
42
- }
43
-
44
- export default {
45
- backgroundSemantic
46
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * SEMANTIC BORDER TOKENS
3
- *
4
- * Generated from figma-reference-tokens-studio.
5
- */
6
-
7
- import { tokenRef } from '../build/refs.js';
8
-
9
- export const borderSemantic = {
10
- light: {
11
- default: tokenRef('brand.surfaces.surface-100'),
12
- strong: tokenRef('primitives.base.black'),
13
- warning: tokenRef('primitives.yellow.600'),
14
- success: tokenRef('primitives.green.600'),
15
- danger: tokenRef('primitives.red.600'),
16
- primary: tokenRef('brand.primary.primary-500'),
17
- accent: tokenRef('brand.accent.accent-500'),
18
- warningHover: tokenRef('primitives.yellow.500'),
19
- successHover: tokenRef('primitives.green.500'),
20
- dangerHover: tokenRef('primitives.red.500'),
21
- primaryHover: tokenRef('brand.primary.primary-600'),
22
- accentHover: tokenRef('brand.accent.accent-600'),
23
- subtle: tokenRef('brand.surfaces.surface-200')
24
- },
25
- dark: {
26
- default: tokenRef('brand.surfaces.surface-800'),
27
- strong: tokenRef('primitives.base.white'),
28
- warning: tokenRef('primitives.yellow.400'),
29
- success: tokenRef('primitives.green.400'),
30
- danger: tokenRef('primitives.red.400'),
31
- primary: tokenRef('brand.primary.primary-500'),
32
- accent: tokenRef('brand.accent.accent-500'),
33
- warningHover: tokenRef('primitives.yellow.500'),
34
- successHover: tokenRef('primitives.green.500'),
35
- dangerHover: tokenRef('primitives.red.500'),
36
- primaryHover: tokenRef('brand.primary.primary-400'),
37
- accentHover: tokenRef('brand.accent.accent-400'),
38
- subtle: tokenRef('brand.surfaces.surface-700')
39
- },
40
- };
41
-
42
- export default {
43
- borderSemantic,
44
- };
@@ -1,48 +0,0 @@
1
- /**
2
- * SEMANTIC TEXT TOKENS
3
- *
4
- * Generated from figma-reference-tokens-studio.
5
- */
6
-
7
- import { tokenRef } from '../build/refs.js';
8
-
9
- export const textSemantic = {
10
- light: {
11
- default: tokenRef('primitives.neutral.900'),
12
- muted: tokenRef('primitives.neutral.600'),
13
- link: tokenRef('primitives.blue.600'),
14
- code: tokenRef('primitives.neutral.600'),
15
- linkHover: tokenRef('primitives.blue.700'),
16
- primary: tokenRef('brand.primary.primary-500'),
17
- primaryHover: tokenRef('brand.primary.primary-600'),
18
- accent: tokenRef('brand.accent.accent-500'),
19
- accentHover: tokenRef('brand.accent.accent-600'),
20
- dangerHover: tokenRef('primitives.red.500'),
21
- warningHover: tokenRef('primitives.yellow.500'),
22
- successHover: tokenRef('primitives.green.500'),
23
- success: tokenRef('primitives.green.600'),
24
- danger: tokenRef('primitives.red.600'),
25
- warning: tokenRef('primitives.yellow.600')
26
- },
27
- dark: {
28
- default: tokenRef('primitives.neutral.50'),
29
- muted: tokenRef('primitives.neutral.400'),
30
- link: tokenRef('primitives.blue.400'),
31
- code: tokenRef('primitives.neutral.400'),
32
- linkHover: tokenRef('primitives.blue.300'),
33
- primary: tokenRef('brand.primary.primary-500'),
34
- primaryHover: tokenRef('brand.primary.primary-400'),
35
- accent: tokenRef('brand.accent.accent-500'),
36
- accentHover: tokenRef('brand.accent.accent-400'),
37
- dangerHover: tokenRef('primitives.red.500'),
38
- warningHover: tokenRef('primitives.yellow.500'),
39
- successHover: tokenRef('primitives.green.500'),
40
- success: tokenRef('primitives.green.400'),
41
- danger: tokenRef('primitives.red.400'),
42
- warning: tokenRef('primitives.yellow.400'),
43
- }
44
- };
45
-
46
- export default {
47
- textSemantic,
48
- };
File without changes