@marigold/theme-rui 0.1.0 → 0.2.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/dist/theme.css CHANGED
@@ -15,6 +15,11 @@
15
15
  text-destructive like used in inputs
16
16
  */
17
17
 
18
+ @plugin "@marigold/theme-plugins/src/tw-rac-plugins";
19
+ @plugin "@marigold/theme-plugins/src/tw-custom-placement-plugin";
20
+ @plugin "@marigold/theme-plugins/src/tw-custom-aria-variants-plugin";
21
+ @plugin "tailwindcss-animate";
22
+
18
23
  @theme {
19
24
  /* orange (use for accent) */
20
25
  --color-orange-50: #fff9ed;
@@ -38,18 +43,100 @@
38
43
  --color-brand: var(--color-stone-950);
39
44
  --color-brand-foreground: var(--color-stone-50);
40
45
 
46
+ /* used for hovering (e.g. calendar, button) */
47
+ --color-hover: var(--color-stone-300);
48
+ --color-hover-foreground: var(--color-stone-950);
49
+
50
+ /* stone (use for secondary) */
51
+ --color-secondary: var(--color-stone-50);
52
+ --color-secondary-foreground: var(--color-stone-950);
53
+
54
+ /* accent colors used for highlighting certain parts of components */
55
+
56
+ /* used for errormessage, button */
41
57
  --color-destructive: var(--color-red-600);
42
58
  --color-destructive-foreground: var(--color-white);
43
59
 
60
+ /* muted variant of destructive for badge */
61
+ --color-destructive-muted-accent: var(--color-red-600);
62
+ --color-destructive-muted: var(--color-red-100);
63
+ --color-destructive-muted-foreground: var(--color-red-950);
64
+
65
+ /* muted variant of success token, used in badge */
66
+ --color-success-muted-accent: var(--color-green-600);
67
+ --color-success-muted: var(--color-green-100);
68
+ --color-success-muted-foreground: var(--color-green-950);
69
+
70
+ /* muted variant of warning token, used in badge */
71
+ --color-warning-muted-accent: var(--color-yellow-600);
72
+ --color-warning-muted: var(--color-yellow-100);
73
+ --color-warning-muted-foreground: var(--color-yellow-950);
74
+
75
+ /* muted variant of info token, used in badge */
76
+ --color-info-muted-accent: var(--color-blue-600);
77
+ --color-info-muted: var(--color-blue-100);
78
+ --color-info-muted-foreground: var(--color-blue-950);
79
+
80
+ /*
81
+ muted colors are desaturated colors of the brand color,
82
+ they help create hierarchy for secondary text.
83
+ Currently used for: helptext, icons inside inputs, readonly background inside inputs
84
+ */
44
85
  --color-muted: var(--color-stone-100);
45
86
  --color-muted-foreground: var(--color-stone-500);
46
87
 
88
+ --color-disabled: var(--color-stone-200);
89
+ --color-disabled-foreground: var(--color-stone-400);
90
+
91
+ /* used for placeholder color */
47
92
  --color-placeholder: --alpha(var(--color-stone-500) / 70%);
93
+ /* used for outline/border as ring*/
94
+ --color-ring: var(--color-stone-400);
48
95
 
49
96
  /* Input tokens */
50
- --color-input-border: var(--color-stone-300);
51
- --color-input-ring: var(--color-stone-400);
97
+ /* color input used for inputs as border or e.g. in switch as bg track color */
98
+ --color-input: var(--color-stone-300);
99
+ /* component height for input elements */
100
+ --spacing-input: 2.25rem;
101
+
102
+ /* component height for button elements */
103
+ --spacing-button: 2.25rem;
104
+
105
+ /* surface colors used for elevation levels */
106
+ --color-surface-overlay: var(--color-white);
107
+
108
+ --color-border: var(--color-stone-200);
109
+
110
+ /* Focus color is used for focusing an element (e.g. segment on Datefield)*/
111
+ --color-focus: var(--color-stone-100);
112
+
113
+ /* Selected color is used when there is an active selection in the component */
114
+ --color-selected: var(--color-stone-100);
115
+
116
+ /* animation and keyframes */
117
+ --animate-rotate-spinner: rotate-spinner 2s linear infinite;
118
+ --animate-progress-cycle: progress-cycle 1.5s linear infinite;
119
+
120
+ @keyframes rotate-spinner {
121
+ 0% {
122
+ transform: rotate(0deg);
123
+ }
124
+ 100% {
125
+ transform: rotate(360deg);
126
+ }
127
+ }
52
128
 
53
- /* component height */
54
- --spacing-component: 2.25rem;
129
+ @keyframes progress-cycle {
130
+ 0% {
131
+ transform: rotate(0deg);
132
+ stroke-dashoffset: 75;
133
+ }
134
+ 30% {
135
+ stroke-dashoffset: 20;
136
+ }
137
+ 100% {
138
+ transform: rotate(360deg);
139
+ stroke-dashoffset: 75;
140
+ }
141
+ }
55
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/theme-rui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Marigold RUI Theme",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -41,16 +41,18 @@
41
41
  "directory": "themes/theme-rui"
42
42
  },
43
43
  "devDependencies": {
44
- "@tailwindcss/postcss": "4.0.6",
44
+ "@tailwindcss/postcss": "4.0.9",
45
45
  "cssnano": "7.0.6",
46
46
  "postcss-cli": "11.0.0",
47
- "tailwindcss": "4.0.6",
48
- "tsup": "8.3.5",
47
+ "tailwindcss": "4.0.9",
48
+ "tailwindcss-animate": "1.0.7",
49
+ "tsup": "8.3.6",
49
50
  "@marigold/tsconfig": "0.4.0"
50
51
  },
51
52
  "dependencies": {
52
- "@marigold/system": "11.1.1",
53
- "@marigold/components": "11.1.1"
53
+ "@marigold/components": "11.2.1",
54
+ "@marigold/system": "11.2.1",
55
+ "@marigold/theme-plugins": "1.0.1"
54
56
  },
55
57
  "scripts": {
56
58
  "build": "NODE_ENV=production tsup && postcss -o dist/styles.css src/styles.css && cp src/theme.css dist/theme.css"