@indico-data/design-system 3.4.0 → 3.6.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 (95) hide show
  1. package/lib/components/icons/types.d.ts +1 -1
  2. package/lib/docs/BaseColorPalette/BaseColorPalette.d.ts +1 -0
  3. package/lib/docs/BaseColorPalette/BaseColorsPalette.stories.d.ts +6 -0
  4. package/lib/docs/SemanticTokens/ColorSwatch.d.ts +6 -0
  5. package/lib/docs/SemanticTokens/SemanticTokens.stories.d.ts +9 -0
  6. package/lib/index.css +6682 -3683
  7. package/lib/index.d.ts +1 -1
  8. package/lib/index.esm.css +6682 -3683
  9. package/lib/index.esm.js +2 -2
  10. package/lib/index.esm.js.map +1 -1
  11. package/lib/index.js +2 -2
  12. package/lib/index.js.map +1 -1
  13. package/package.json +1 -1
  14. package/src/components/badge/styles/Badge.scss +10 -10
  15. package/src/components/button/styles/Button.scss +7 -7
  16. package/src/components/button/styles/_variables.scss +5 -5
  17. package/src/components/card/styles/Card.scss +11 -13
  18. package/src/components/floatUI/styles/FloatUI.scss +3 -3
  19. package/src/components/forms/checkbox/styles/Checkbox.scss +11 -23
  20. package/src/components/forms/date/datePicker/styles/DatePicker.scss +25 -25
  21. package/src/components/forms/form/styles/Form.scss +19 -53
  22. package/src/components/forms/input/styles/Input.scss +10 -10
  23. package/src/components/forms/numberInput/styles/NumberInput.scss +13 -18
  24. package/src/components/forms/passwordInput/styles/PasswordInput.scss +12 -12
  25. package/src/components/forms/radio/styles/Radio.scss +8 -22
  26. package/src/components/forms/select/styles/Select.scss +38 -54
  27. package/src/components/forms/textarea/styles/Textarea.scss +11 -11
  28. package/src/components/forms/toggle/styles/Toggle.scss +14 -31
  29. package/src/components/icons/Icon.mdx +1 -1
  30. package/src/components/icons/Icon.stories.tsx +10 -9
  31. package/src/components/icons/styles/Icon.scss +2 -0
  32. package/src/components/icons/types.ts +1 -1
  33. package/src/components/menu/styles/Menu.scss +9 -9
  34. package/src/components/modal/styles/Modal.scss +23 -56
  35. package/src/components/pagination/styles/Pagination.scss +1 -1
  36. package/src/components/pill/styles/Pill.scss +8 -6
  37. package/src/components/skeleton/styles/Skeleton.scss +3 -3
  38. package/src/components/stepper/examples/constants.ts +2 -2
  39. package/src/components/stepper/styles/Stepper.scss +25 -71
  40. package/src/components/table/styles/Table.scss +8 -8
  41. package/src/components/tanstackTable/components/ActionBar/ActionBar.scss +3 -3
  42. package/src/components/tanstackTable/components/NoResults/NoResults.scss +3 -3
  43. package/src/components/tanstackTable/styles/table.scss +39 -40
  44. package/src/components/toast/styles/Toast.scss +20 -36
  45. package/src/components/tooltip/Tooltip.tsx +2 -2
  46. package/src/docs/BaseColorPalette/BaseColorPalette.mdx +35 -0
  47. package/src/docs/BaseColorPalette/BaseColorPalette.tsx +51 -0
  48. package/src/docs/BaseColorPalette/BaseColorsPalette.stories.tsx +13 -0
  49. package/src/{stylesAndAnimations/colors → docs/BaseColorPalette}/Swatch.tsx +32 -3
  50. package/src/docs/Primitives.mdx +110 -0
  51. package/src/docs/SemanticTokens/ColorSwatch.tsx +22 -0
  52. package/src/docs/SemanticTokens/SemanticTokens.mdx +53 -0
  53. package/src/docs/SemanticTokens/SemanticTokens.stories.tsx +152 -0
  54. package/src/styles/_borders.scss +16 -19
  55. package/src/styles/_colors.scss +16 -6
  56. package/src/styles/_spacing-utilities.scss +185 -0
  57. package/src/styles/_typography.scss +4 -4
  58. package/src/styles/globals.scss +7 -77
  59. package/src/styles/index.scss +5 -5
  60. package/src/styles/primitives/_borders.scss +27 -0
  61. package/src/styles/primitives/_breakpoints.scss +9 -0
  62. package/src/styles/{variables → primitives}/_colors.scss +26 -52
  63. package/src/styles/primitives/_iconSizes.scss +10 -0
  64. package/src/styles/primitives/_shadows.scss +9 -0
  65. package/src/styles/primitives/_spacing.scss +68 -0
  66. package/src/styles/primitives/_typography.scss +28 -0
  67. package/src/styles/primitives/index.scss +7 -0
  68. package/src/styles/storybook.scss +9 -9
  69. package/src/styles/tokens/_semantic-tokens.scss +172 -0
  70. package/src/styles/variables/index.scss +0 -7
  71. package/src/stylesAndAnimations/borders/BorderColor.tsx +0 -4
  72. package/src/stylesAndAnimations/sizing/Sizing.mdx +4 -1
  73. package/src/stylesAndAnimations/utilityClasses/UtilityClassesData.ts +2 -1
  74. package/lib/stylesAndAnimations/colors/Colors.d.ts +0 -1
  75. package/lib/stylesAndAnimations/colors/Colors.stories.d.ts +0 -6
  76. package/lib/stylesAndAnimations/colors/constants.d.ts +0 -34
  77. package/lib/stylesAndAnimations/colors/index.d.ts +0 -1
  78. package/src/components/tooltip/styles/Tooltip.scss +0 -12
  79. package/src/styles/_gap.scss +0 -18
  80. package/src/styles/_margin.scss +0 -41
  81. package/src/styles/_padding.scss +0 -30
  82. package/src/styles/_sheets.scss +0 -7
  83. package/src/styles/variables/_borders.scss +0 -46
  84. package/src/styles/variables/_gap.scss +0 -19
  85. package/src/styles/variables/_icons.scss +0 -7
  86. package/src/styles/variables/_margin.scss +0 -37
  87. package/src/styles/variables/_padding.scss +0 -19
  88. package/src/styles/variables/_size.scss +0 -19
  89. package/src/stylesAndAnimations/colors/BaseColorPalette.mdx +0 -56
  90. package/src/stylesAndAnimations/colors/Colors.stories.tsx +0 -13
  91. package/src/stylesAndAnimations/colors/Colors.tsx +0 -64
  92. package/src/stylesAndAnimations/colors/constants.ts +0 -280
  93. package/src/stylesAndAnimations/colors/index.ts +0 -1
  94. /package/lib/{stylesAndAnimations/colors → docs/BaseColorPalette}/Swatch.d.ts +0 -0
  95. /package/src/{stylesAndAnimations/colors → docs/BaseColorPalette}/swatches.scss +0 -0
@@ -0,0 +1,172 @@
1
+ // ============================================================================
2
+ // SEMANTIC TOKENS - Following Figma's Exact Token Structure
3
+ // ============================================================================
4
+ // These tokens map semantic meaning to our base palette colors and align with Figma
5
+ // All tokens use --pf-semantic prefix. Eventually the word 'semantic' should be removed.
6
+ // In the meantime, it is helpful to distinguish existing tokens with figma aligned ones
7
+
8
+ // Light Theme
9
+ :root [data-theme='light'] {
10
+ // Utility Colors
11
+ --pf-semantic-utility-info-default: var(--pf-secondary-color-450);
12
+ --pf-semantic-utility-info-light: var(--pf-secondary-color-400);
13
+ --pf-semantic-utility-info-dark: var(--pf-secondary-color-550);
14
+ --pf-semantic-utility-warning-default: var(--pf-yellow-color-400);
15
+ --pf-semantic-utility-warning-light: var(--pf-yellow-color-300);
16
+ --pf-semantic-utility-warning-dark: var(--pf-yellow-color-550);
17
+ --pf-semantic-utility-error-default: var(--pf-red-color-450);
18
+ --pf-semantic-utility-error-light: var(--pf-red-color-300);
19
+ --pf-semantic-utility-error-dark: var(--pf-red-color-600);
20
+ --pf-semantic-utility-success-default: var(--pf-green-color-500);
21
+ --pf-semantic-utility-success-light: var(--pf-green-color-400);
22
+ --pf-semantic-utility-success-dark: var(--pf-green-color-600);
23
+ --pf-semantic-utility-neutral-default: var(--pf-gray-color-500);
24
+ --pf-semantic-utility-neutral-light: var(--pf-gray-color-400);
25
+ --pf-semantic-utility-neutral-dark: var(--pf-gray-color-600);
26
+ --pf-semantic-utility-brand-default: var(--pf-blue-color-450);
27
+ --pf-semantic-utility-brand-light: var(--pf-blue-color-300);
28
+ --pf-semantic-utility-brand-dark: var(--pf-blue-color-550);
29
+ --pf-semantic-utility-pending-default: var(--pf-pink-color-500);
30
+ --pf-semantic-utility-pending-light: var(--pf-pink-color-300);
31
+ --pf-semantic-utility-pending-dark: var(--pf-pink-color-600);
32
+ --pf-semantic-utility-orange-default: var(--pf-orange-color-400);
33
+ --pf-semantic-utility-orange-light: var(--pf-orange-color-300);
34
+ --pf-semantic-utility-orange-dark: var(--pf-orange-color-500);
35
+ --pf-semantic-utility-purple-default: var(--pf-purple-color-500);
36
+ --pf-semantic-utility-purple-light: var(--pf-purple-color-300);
37
+ --pf-semantic-utility-purple-dark: var(--pf-purple-color-600);
38
+ --pf-semantic-utility-teal-default: var(--pf-teal-color-550);
39
+ --pf-semantic-utility-teal-light: var(--pf-teal-color-300);
40
+ --pf-semantic-utility-teal-dark: var(--pf-teal-color-600);
41
+
42
+ // Background
43
+ --pf-semantic-page-background: var(--pf-gray-color-100);
44
+ --pf-semantic-background-primary: var(--pf-gray-color-150);
45
+ --pf-semantic-background-secondary: var(--pf-gray-color-50);
46
+ --pf-semantic-background-tertiary: var(--pf-gray-color-200);
47
+ --pf-semantic-background-quaternary: var(--pf-gray-color-250);
48
+ --pf-semantic-background-accent: var(--pf-secondary-color-200);
49
+ --pf-semantic-background-highlight: var(--pf-blue-color-250);
50
+ --pf-semantic-background-brand-solid: var(--pf-blue-color-500);
51
+ --pf-semantic-background-brand-hover: var(--pf-blue-color-600);
52
+ --pf-semantic-background-inverted: var(--pf-tertiary-color-900);
53
+
54
+ // Border
55
+ --pf-semantic-border-primary: var(--pf-gray-color-300);
56
+ --pf-semantic-border-secondary: var(--pf-gray-color-250);
57
+ --pf-semantic-border-hover: var(--pf-gray-color-400);
58
+ --pf-semantic-border-soft: var(--pf-secondary-color-450);
59
+ --pf-semantic-border-accent: var(--pf-blue-color-450);
60
+ --pf-semantic-border-error: var(--pf-red-color-450);
61
+ --pf-semantic-border-warning: var(--pf-yellow-color-400);
62
+ --pf-semantic-border-pending: var(--pf-orange-color-400);
63
+ --pf-semantic-border-success: var(--pf-green-color-500);
64
+ --pf-semantic-border-info: var(--pf-secondary-color-450);
65
+ --pf-semantic-border-neutral: var(--pf-gray-color-500);
66
+
67
+ // Brand Logo
68
+ --pf-semantic-logo-primary: var(--pf-blue-color-450);
69
+ --pf-semantic-logo-secondary: var(--pf-primary-color-800);
70
+
71
+ // Font & Icon
72
+ --pf-semantic-font-regular: var(--pf-primary-color-800);
73
+ --pf-semantic-font-inverted: var(--pf-gray-color-50);
74
+ --pf-semantic-font-soft: var(--pf-gray-color-700);
75
+ --pf-semantic-font-mute: var(--pf-gray-color-800);
76
+ --pf-semantic-font-link: var(--pf-blue-color-500);
77
+ --pf-semantic-font-placeholder: var(--pf-gray-color-450);
78
+ --pf-semantic-font-disabled: var(--pf-gray-color-400);
79
+ --pf-semantic-font-accent: var(--pf-blue-color-500);
80
+ --pf-semantic-font-error: var(--pf-red-color-450);
81
+ --pf-semantic-font-success: var(--pf-green-color-600);
82
+
83
+ // Elevation
84
+ --pf-semantic-elevation-1: var(--pf-opacity-black-100);
85
+ --pf-semantic-elevation-2: var(--pf-opacity-black-150);
86
+ --pf-semantic-elevation-3: var(--pf-opacity-black-200);
87
+ --pf-semantic-elevation-4: var(--pf-opacity-black-250);
88
+ --pf-semantic-elevation-5: var(--pf-opacity-black-300);
89
+ }
90
+
91
+ // Dark Theme
92
+ :root [data-theme='dark'] {
93
+ // Utility Colors
94
+ --pf-semantic-utility-info-default: var(--pf-secondary-color-450);
95
+ --pf-semantic-utility-info-light: var(--pf-secondary-color-400);
96
+ --pf-semantic-utility-info-dark: var(--pf-secondary-color-550);
97
+ --pf-semantic-utility-warning-default: var(--pf-yellow-color-400);
98
+ --pf-semantic-utility-warning-light: var(--pf-yellow-color-300);
99
+ --pf-semantic-utility-warning-dark: var(--pf-yellow-color-550);
100
+ --pf-semantic-utility-error-default: var(--pf-red-color-450);
101
+ --pf-semantic-utility-error-light: var(--pf-red-color-300);
102
+ --pf-semantic-utility-error-dark: var(--pf-red-color-500);
103
+ --pf-semantic-utility-success-default: var(--pf-green-color-500);
104
+ --pf-semantic-utility-success-light: var(--pf-green-color-400);
105
+ --pf-semantic-utility-success-dark: var(--pf-green-color-600);
106
+ --pf-semantic-utility-neutral-default: var(--pf-gray-color-500);
107
+ --pf-semantic-utility-neutral-light: var(--pf-gray-color-400);
108
+ --pf-semantic-utility-neutral-dark: var(--pf-gray-color-600);
109
+ --pf-semantic-utility-brand-default: var(--pf-blue-color-450);
110
+ --pf-semantic-utility-brand-light: var(--pf-blue-color-300);
111
+ --pf-semantic-utility-brand-dark: var(--pf-blue-color-550);
112
+ --pf-semantic-utility-pending-default: var(--pf-pink-color-500);
113
+ --pf-semantic-utility-pending-light: var(--pf-pink-color-300);
114
+ --pf-semantic-utility-pending-dark: var(--pf-pink-color-600);
115
+ --pf-semantic-utility-orange-default: var(--pf-orange-color-400);
116
+ --pf-semantic-utility-orange-light: var(--pf-orange-color-300);
117
+ --pf-semantic-utility-orange-dark: var(--pf-orange-color-500);
118
+ --pf-semantic-utility-purple-default: var(--pf-purple-color-500);
119
+ --pf-semantic-utility-purple-light: var(--pf-purple-color-300);
120
+ --pf-semantic-utility-purple-dark: var(--pf-purple-color-600);
121
+ --pf-semantic-utility-teal-default: var(--pf-teal-color-550);
122
+ --pf-semantic-utility-teal-light: var(--pf-teal-color-300);
123
+ --pf-semantic-utility-teal-dark: var(--pf-teal-color-600);
124
+
125
+ // Background
126
+ --pf-semantic-page-background: var(--pf-primary-color-700);
127
+ --pf-semantic-background-primary: var(--pf-primary-color-900);
128
+ --pf-semantic-background-secondary: var(--pf-primary-color-800);
129
+ --pf-semantic-background-tertiary: var(--pf-primary-color-600);
130
+ --pf-semantic-background-quaternary: var(--pf-primary-color-500);
131
+ --pf-semantic-background-accent: var(--pf-blue-color-800);
132
+ --pf-semantic-background-highlight: var(--pf-blue-color-700);
133
+ --pf-semantic-background-brand-solid: var(--pf-secondary-color-450);
134
+ --pf-semantic-background-brand-hover: var(--pf-secondary-color-600);
135
+ --pf-semantic-background-inverted: var(--pf-tertiary-color-100);
136
+
137
+ // Border
138
+ --pf-semantic-border-primary: var(--pf-tertiary-color-700);
139
+ --pf-semantic-border-secondary: var(--pf-primary-color-600);
140
+ --pf-semantic-border-hover: var(--pf-tertiary-color-600);
141
+ --pf-semantic-border-soft: var(--pf-secondary-color-600);
142
+ --pf-semantic-border-accent: var(--pf-secondary-color-400);
143
+ --pf-semantic-border-error: var(--pf-red-color-450);
144
+ --pf-semantic-border-warning: var(--pf-yellow-color-400);
145
+ --pf-semantic-border-pending: var(--pf-orange-color-400);
146
+ --pf-semantic-border-success: var(--pf-green-color-500);
147
+ --pf-semantic-border-info: var(--pf-secondary-color-450);
148
+ --pf-semantic-border-neutral: var(--pf-gray-color-500);
149
+
150
+ // Brand Logo
151
+ --pf-semantic-logo-primary: var(--pf-blue-color-450);
152
+ --pf-semantic-logo-secondary: var(--pf-gray-color-50);
153
+
154
+ // Font & Icon
155
+ --pf-semantic-font-regular: var(--pf-gray-color-50);
156
+ --pf-semantic-font-inverted: var(--pf-gray-color-900);
157
+ --pf-semantic-font-soft: var(--pf-tertiary-color-300);
158
+ --pf-semantic-font-mute: var(--pf-tertiary-color-400);
159
+ --pf-semantic-font-link: var(--pf-secondary-color-400);
160
+ --pf-semantic-font-placeholder: var(--pf-tertiary-color-450);
161
+ --pf-semantic-font-disabled: var(--pf-tertiary-color-700);
162
+ --pf-semantic-font-accent: var(--pf-secondary-color-400);
163
+ --pf-semantic-font-error: var(--pf-red-color-300);
164
+ --pf-semantic-font-success: var(--pf-green-color-400);
165
+
166
+ // Elevation
167
+ --pf-semantic-elevation-1: var(--pf-opacity-black-200);
168
+ --pf-semantic-elevation-2: var(--pf-opacity-black-250);
169
+ --pf-semantic-elevation-3: var(--pf-opacity-black-300);
170
+ --pf-semantic-elevation-4: var(--pf-opacity-black-400);
171
+ --pf-semantic-elevation-5: var(--pf-opacity-black-450);
172
+ }
@@ -1,9 +1,2 @@
1
1
  @import 'typography';
2
- @import 'colors';
3
- @import 'icons';
4
- @import 'borders';
5
- @import 'padding';
6
- @import 'margin';
7
- @import 'gap';
8
- @import 'size';
9
2
  @import 'dropshadows';
@@ -19,10 +19,6 @@ export const BorderColor = () => {
19
19
  <div className="sb__square bg-gray-800 border border-lg border-secondary"></div>
20
20
  <p className="text-align--center">border-secondary</p>
21
21
  </div>
22
- <div>
23
- <div className="sb__square bg-gray-800 border border-lg border-soft-accent"></div>
24
- <p className="text-align--center">border-soft-accent</p>
25
- </div>
26
22
  <div>
27
23
  <div className="sb__square bg-gray-800 border border-lg border-error"></div>
28
24
  <p className="text-align--center">border-error</p>
@@ -1,7 +1,10 @@
1
1
  import { Canvas, Meta, Controls } from '@storybook/blocks';
2
2
  import * as Sizing from './Sizing.stories';
3
3
 
4
- <Meta title="Utility Classes/Sizing" /># Sizing The Sizing utility classes follow this pattern of
4
+ <Meta title="Utility Classes/Sizing" />
5
+
6
+ # Sizing The Sizing utility classes follow this pattern of
7
+
5
8
  usage.
6
9
 
7
10
  Instructuions: `{property}{direction}-{size}` The property applies the type of spacing:
@@ -28,7 +28,6 @@ export const utilityClassesData: UtilityClassData[] = [
28
28
  { className: 'border-yellow', css: 'border-color: var(--pf-yellow-color);', category: 'Border' },
29
29
  { className: 'border-green', css: 'border-color: var(--pf-green-color);', category: 'Border' },
30
30
  { className: 'border-purple', css: 'border-color: var(--pf-purple-color);', category: 'Border' },
31
- { className: 'border-thin', css: 'border-width: var(--pf-border-thin);', category: 'Border' },
32
31
  { className: 'border-sm', css: 'border-width: var(--pf-border-sm);', category: 'Border' },
33
32
  { className: 'border-md', css: 'border-width: var(--pf-border-md);', category: 'Border' },
34
33
  { className: 'border-lg', css: 'border-width: var(--pf-border-lg);', category: 'Border' },
@@ -241,6 +240,8 @@ export const utilityClassesData: UtilityClassData[] = [
241
240
  { className: 'icon-md', css: 'font-size: var(--pf-icon-size-md);', category: 'Icon' },
242
241
  { className: 'icon-lg', css: 'font-size: var(--pf-icon-size-lg);', category: 'Icon' },
243
242
  { className: 'icon-xl', css: 'font-size: var(--pf-icon-size-xl);', category: 'Icon' },
243
+ { className: 'icon-2xl', css: 'font-size: var(--pf-icon-size-2xl);', category: 'Icon' },
244
+ { className: 'icon-3xl', css: 'font-size: var(--pf-icon-size-3xl);', category: 'Icon' },
244
245
 
245
246
  // Drop Shadows
246
247
  { className: 'shadow-surface', css: 'box-shadow: var(--pf-shadow-surface);', category: 'Effect' },
@@ -1 +0,0 @@
1
- export declare const Colors: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Colors } from './Colors';
3
- declare const meta: Meta<typeof Colors>;
4
- export default meta;
5
- type Story = StoryObj<typeof Colors>;
6
- export declare const Default: Story;
@@ -1,34 +0,0 @@
1
- interface ColorPalette {
2
- base: string;
3
- 50: string;
4
- 100: string;
5
- 150: string;
6
- 200: string;
7
- 250: string;
8
- 300: string;
9
- 400: string;
10
- 450: string;
11
- 500: string;
12
- 550?: string;
13
- 600: string;
14
- 700: string;
15
- 800: string;
16
- 900: string;
17
- }
18
- interface UtilityColors {
19
- success: string;
20
- info: string;
21
- neutral: string;
22
- warning: string;
23
- error: string;
24
- brand: string;
25
- }
26
- interface ThemeColors {
27
- [key: string]: ColorPalette | UtilityColors;
28
- utilityDark: UtilityColors;
29
- utilityLight: UtilityColors;
30
- }
31
- export declare const colorList: readonly ["primary", "secondary", "tertiary", "blue", "gray", "green", "orange", "pink", "purple", "red", "teal", "yellow"];
32
- export declare const utilityColorList: readonly ["success", "info", "neutral", "warning", "error", "brand"];
33
- export declare const themeColors: ThemeColors;
34
- export {};
@@ -1 +0,0 @@
1
- export { Colors } from './Colors';
@@ -1,12 +0,0 @@
1
- :root [data-theme='light'] {
2
- --pf-tooltip-background-color: var(--pf-background-color-inverted);
3
- --pf-tooltip-font-color: var(--pf-font-color-inverted);
4
- --pf-tooltip-supporting-font-color: var(--pf-font-color-disabled);
5
- }
6
-
7
- :root [data-theme='dark'],
8
- :root {
9
- --pf-tooltip-background-color: var(--pf-background-color-inverted);
10
- --pf-tooltip-font-color: var(--pf-font-color-inverted);
11
- --pf-tooltip-supporting-font-color: var(--pf-font-color-disabled);
12
- }
@@ -1,18 +0,0 @@
1
- $sizes: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
2
- $classes: (
3
- 'gap': 'gap',
4
- );
5
-
6
- @each $class, $property in $classes {
7
- @each $size in $sizes {
8
- .#{$class}-#{$size} {
9
- @if type-of($property) == list {
10
- @each $prop in $property {
11
- #{$prop}: var(--pf-gap-#{$size});
12
- }
13
- } @else {
14
- #{$property}: var(--pf-gap-#{$size});
15
- }
16
- }
17
- }
18
- }
@@ -1,41 +0,0 @@
1
- $sizes: auto, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
2
- $negativeSizes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
3
- $classes: (
4
- "ma": "margin",
5
- "mx": ("margin-left", "margin-right"),
6
- "my": ("margin-top", "margin-bottom"),
7
- "ml": "margin-left",
8
- "mr": "margin-right",
9
- "mb": "margin-bottom",
10
- "mt": "margin-top"
11
- );
12
-
13
- @each $class, $property in $classes {
14
- @each $size in $sizes {
15
- .#{$class}-#{$size} {
16
- @if type-of($property)==list {
17
- @each $prop in $property {
18
- #{$prop}: var(--pf-margin-#{$size});
19
- }
20
- }
21
-
22
- @else {
23
- #{$property}: var(--pf-margin-#{$size});
24
- }
25
- }
26
- }
27
-
28
- @each $size in $negativeSizes {
29
- .#{$class}-n#{$size} {
30
- @if type-of($property)==list {
31
- @each $prop in $property {
32
- #{$prop}: var(--pf-negative-margin-#{$size});
33
- }
34
- }
35
-
36
- @else {
37
- #{$property}: var(--pf-negative-margin-#{$size});
38
- }
39
- }
40
- }
41
- }
@@ -1,30 +0,0 @@
1
- $sizes: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
2
- $classes: (
3
- 'pa': 'padding',
4
- 'px': (
5
- 'padding-left',
6
- 'padding-right',
7
- ),
8
- 'py': (
9
- 'padding-top',
10
- 'padding-bottom',
11
- ),
12
- 'pl': 'padding-left',
13
- 'pr': 'padding-right',
14
- 'pb': 'padding-bottom',
15
- 'pt': 'padding-top',
16
- );
17
-
18
- @each $class, $property in $classes {
19
- @each $size in $sizes {
20
- .#{$class}-#{$size} {
21
- @if type-of($property) ==list {
22
- @each $prop in $property {
23
- #{$prop}: var(--pf-padding-#{$size});
24
- }
25
- } @else {
26
- #{$property}: var(--pf-padding-#{$size});
27
- }
28
- }
29
- }
30
- }
@@ -1,7 +0,0 @@
1
- :root [data-theme='light'] {
2
- --sheets-background-color: var(--pf-gray-color-100);
3
- }
4
- :root [data-theme='dark'],
5
- :root {
6
- --sheets-background-color: var(--pf-primary-color-400);
7
- }
@@ -1,46 +0,0 @@
1
- :root {
2
- --pf-border-thin: thin;
3
- --pf-border-sm: 1px;
4
- --pf-border-md: 2px;
5
- --pf-border-lg: 4px;
6
- --pf-border-xl: 8px;
7
- --pf-rounded: 4px;
8
- --pf-rounded-0: 0px;
9
- --pf-rounded-sm: 2px;
10
- --pf-rounded-md: 4px;
11
- --pf-rounded-lg: 8px;
12
- --pf-rounded-xl: 24px;
13
- --pf-rounded-pill: 9999px;
14
- --pf-rounded-circle: 50%;
15
- --pf-rounded-shaped: 24px 0;
16
- }
17
-
18
- :root [data-theme='light'] {
19
- --pf-border-color-primary: var(--pf-gray-color-300);
20
- --pf-border-color-secondary: var(--pf-gray-color-250);
21
- --pf-border-hover-color: var(--pf-gray-color-400);
22
- --pf-border-color-soft: var(--pf-secondary-color-450);
23
- --pf-border-color-accent: var(--pf-blue-color-450);
24
- --pf-border-color-error: var(--pf-error-color);
25
- --pf-border-color-warning: var(--pf-warning-color);
26
- --pf-border-color-info: var(--pf-info-color);
27
- --pf-border-color-success: var(--pf-success-color);
28
- --pf-border-color-neutral: var(--pf-neutral-color);
29
- --pf-border-color-pending: var(--pf-pending-color);
30
- --pf-horizontal-line-color: var(--pf-border-color-primary);
31
- }
32
-
33
- :root [data-theme='dark'],
34
- :root {
35
- --pf-border-color-primary: var(--pf-tertiary-color-700);
36
- --pf-border-color-secondary: var(--pf-primary-color-600);
37
- --pf-border-color-soft: var(--pf-secondary-color-600);
38
- --pf-border-color-accent: var(--pf-secondary-color-400);
39
- --pf-border-color-error: var(--pf-error-color);
40
- --pf-border-color-warning: var(--pf-warning-color);
41
- --pf-border-color-info: var(--pf-info-color);
42
- --pf-border-color-success: var(--pf-success-color);
43
- --pf-border-color-neutral: var(--pf-neutral-color);
44
- --pf-border-color-pending: var(--pf-pending-color);
45
- --pf-horizontal-line-color: var(--pf-border-color-primary);
46
- }
@@ -1,19 +0,0 @@
1
- :root {
2
- --pf-gap-0: 0;
3
- --pf-gap-1: 4px;
4
- --pf-gap-2: 8px;
5
- --pf-gap-3: 12px;
6
- --pf-gap-4: 16px;
7
- --pf-gap-5: 20px;
8
- --pf-gap-6: 24px;
9
- --pf-gap-7: 28px;
10
- --pf-gap-8: 32px;
11
- --pf-gap-9: 36px;
12
- --pf-gap-10: 40px;
13
- --pf-gap-11: 44px;
14
- --pf-gap-12: 48px;
15
- --pf-gap-13: 52px;
16
- --pf-gap-14: 56px;
17
- --pf-gap-15: 60px;
18
- --pf-gap-16: 64px;
19
- }
@@ -1,7 +0,0 @@
1
- :root {
2
- --pf-icon-size-xs: 0.6rem; // eww, probably want this to be 0.5 eventually but we use 0.6 (10px) commonly in the codebase
3
- --pf-icon-size-sm: 0.75rem;
4
- --pf-icon-size-md: 1rem;
5
- --pf-icon-size-lg: 1.5rem;
6
- --pf-icon-size-xl: 2rem;
7
- }
@@ -1,37 +0,0 @@
1
- :root {
2
- --pf-margin-auto: auto;
3
- --pf-margin-0: 0;
4
- --pf-margin-1: 4px;
5
- --pf-margin-2: 8px;
6
- --pf-margin-3: 12px;
7
- --pf-margin-4: 16px;
8
- --pf-margin-5: 20px;
9
- --pf-margin-6: 24px;
10
- --pf-margin-7: 28px;
11
- --pf-margin-8: 32px;
12
- --pf-margin-9: 36px;
13
- --pf-margin-10: 40px;
14
- --pf-margin-11: 44px;
15
- --pf-margin-12: 48px;
16
- --pf-margin-13: 52px;
17
- --pf-margin-14: 56px;
18
- --pf-margin-15: 60px;
19
- --pf-margin-16: 64px;
20
-
21
- --pf-negative-margin-1: -4px;
22
- --pf-negative-margin-2: -8px;
23
- --pf-negative-margin-3: -12px;
24
- --pf-negative-margin-4: -16px;
25
- --pf-negative-margin-5: -20px;
26
- --pf-negative-margin-6: -24px;
27
- --pf-negative-margin-7: -28px;
28
- --pf-negative-margin-8: -32px;
29
- --pf-negative-margin-9: -36px;
30
- --pf-negative-margin-10: -40px;
31
- --pf-negative-margin-11: -44px;
32
- --pf-negative-margin-12: -48px;
33
- --pf-negative-margin-13: -52px;
34
- --pf-negative-margin-14: -56px;
35
- --pf-negative-margin-15: -60px;
36
- --pf-negative-margin-16: -64px;
37
- }
@@ -1,19 +0,0 @@
1
- :root {
2
- --pf-padding-0: 0;
3
- --pf-padding-1: 4px;
4
- --pf-padding-2: 8px;
5
- --pf-padding-3: 12px;
6
- --pf-padding-4: 16px;
7
- --pf-padding-5: 20px;
8
- --pf-padding-6: 24px;
9
- --pf-padding-7: 28px;
10
- --pf-padding-8: 32px;
11
- --pf-padding-9: 36px;
12
- --pf-padding-10: 40px;
13
- --pf-padding-11: 44px;
14
- --pf-padding-12: 48px;
15
- --pf-padding-13: 52px;
16
- --pf-padding-14: 56px;
17
- --pf-padding-15: 60px;
18
- --pf-padding-16: 64px;
19
- }
@@ -1,19 +0,0 @@
1
- :root {
2
- --pf-size-0: 0;
3
- --pf-size-1: 4px;
4
- --pf-size-2: 8px;
5
- --pf-size-3: 12px;
6
- --pf-size-4: 16px;
7
- --pf-size-5: 20px;
8
- --pf-size-6: 24px;
9
- --pf-size-7: 28px;
10
- --pf-size-8: 32px;
11
- --pf-size-9: 36px;
12
- --pf-size-10: 40px;
13
- --pf-size-11: 44px;
14
- --pf-size-12: 48px;
15
- --pf-size-13: 52px;
16
- --pf-size-14: 56px;
17
- --pf-size-15: 60px;
18
- --pf-size-16: 64px;
19
- }
@@ -1,56 +0,0 @@
1
- import { Canvas, Meta, Controls } from '@storybook/blocks';
2
- import * as Colors from './Colors.stories';
3
-
4
- <Meta title="Styles/Base Palette Colors" />
5
- # Base Palette Colors
6
-
7
- These are the base palette colors used to build semantic tokens. Do not use these directly!
8
-
9
- ## Color Structure
10
-
11
- ### Base Colors
12
-
13
- - **Primary**: Blue-gray palette (#50647c) - Main brand colors
14
- - **Secondary**: Blue palette (#1474b8) - Accent and interactive elements
15
- - **Tertiary**: Gray-blue palette (#6a7798) - Supporting elements
16
- - **Gray**: Neutral grays (#808080) - Text and backgrounds
17
- - **Red**: Error and destructive actions (#a3292d)
18
- - **Orange**: Warning and attention (#994733)
19
- - **Yellow**: Caution and highlights (#ad871f)
20
- - **Green**: Success and positive actions (#14b869)
21
- - **Purple**: Special and premium features (#5c29a3)
22
- - **Pink**: Unique and creative elements (#a3292d)
23
- - **Teal**: Information and data (#29a3a3)
24
- - **Blue**: Brand and primary actions (#2989ff)
25
-
26
- ### Color Scale
27
-
28
- Each color family follows a consistent scale: 50, 100, 150, 200, 250, 300, 400, 450, 500, 550, 600, 700, 800, 900
29
-
30
- Click on the swatch to copy the color to your clipboard.
31
-
32
- <Canvas of={Colors.Default} />
33
-
34
- ## CSS Variable Syntax
35
-
36
- In order to use or override a color listed above, you would use the following syntax.
37
-
38
- ### Using A Variable
39
-
40
- The syntax for invoking a variable in your CSS code follows this pattern.
41
-
42
- ```css
43
- .myElement {
44
- color: var(--pf-primary-color-100);
45
- }
46
- ```
47
-
48
- ### Overriding A Variable
49
-
50
- The syntax for overriding a variable in your CSS code follows this pattern.
51
-
52
- ```css
53
- :root {
54
- --pf-primary-color-100: #ff0000;
55
- }
56
- ```
@@ -1,13 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Colors } from './Colors';
3
-
4
- const meta: Meta<typeof Colors> = {
5
- title: 'remove/colors',
6
- component: Colors,
7
- };
8
-
9
- export default meta;
10
-
11
- type Story = StoryObj<typeof Colors>;
12
-
13
- export const Default: Story = {};