Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 5d3c173

Browse files
committed
Update version and CHANGELOG for Tailwind config refactor
Elaborating on the changes, colors in the Tailwind config file have been reorganized under their respective categories such as primary, secondary, accent, etc. Each color now includes a default and foreground property which will enable improved handling
1 parent e95d4c1 commit 5d3c173

File tree

3 files changed

+59
-22
lines changed

3 files changed

+59
-22
lines changed

packages/tailwindcss/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefixlabs/tailwindcss
22

3+
## 0.1.43
4+
5+
### Patch Changes
6+
7+
- Refactor color definitions in Tailwind config
8+
39
## 0.1.42
410

511
### Patch Changes

packages/tailwindcss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefixlabs/tailwindcss",
3-
"version": "0.1.42",
3+
"version": "0.1.43",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {

packages/tailwindcss/src/tailwind.config.ts

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -125,31 +125,62 @@ export const sharedConfig: Config = {
125125
'0 0 0 1px hsl(var(--ui-border)), 0 25px 50px -12px hsl(var(--ui-border))',
126126
},
127127
colors: {
128-
accent: 'hsl(var(--ui-accent))',
129-
'accent-foreground': 'hsl(var(--ui-accent-foreground))',
130128
background: 'hsl(var(--ui-background))',
131-
border: 'hsl(var(--ui-border))',
132-
card: 'hsl(var(--ui-card))',
133-
'card-foreground': 'hsl(var(--ui-card-foreground))',
134-
destructive: 'hsl(var(--ui-destructive))',
135-
'destructive-foreground': 'hsl(var(--ui-destructive-foreground))',
136129
foreground: 'hsl(var(--ui-foreground))',
137-
info: 'hsl(var(--ui-info))',
138-
'info-foreground': 'hsl(var(--ui-info-foreground))',
130+
131+
border: 'hsl(var(--ui-border))',
139132
input: 'hsl(var(--ui-input))',
140-
muted: 'hsl(var(--ui-muted))',
141-
'muted-foreground': 'hsl(var(--ui-muted-foreground))',
142-
popover: 'hsl(var(--ui-popover))',
143-
'popover-foreground': 'hsl(var(--ui-popover-foreground))',
144-
primary: 'hsl(var(--ui-primary))',
145-
'primary-foreground': 'hsl(var(--ui-primary-foreground))',
146133
ring: 'hsl(var(--ui-ring))',
147-
secondary: 'hsl(var(--ui-secondary))',
148-
'secondary-foreground': 'hsl(var(--ui-secondary-foreground))',
149-
success: 'hsl(var(--ui-success))',
150-
'success-foreground': 'hsl(var(--ui-success-foreground))',
151-
warning: 'hsl(var(--ui-warning))',
152-
'warning-foreground': 'hsl(var(--ui-warning-foreground))',
134+
135+
primary: {
136+
DEFAULT: 'hsl(var(--ui-primary))',
137+
foreground: 'hsl(var(--ui-primary-foreground))',
138+
},
139+
140+
secondary: {
141+
DEFAULT: 'hsl(var(--ui-secondary))',
142+
foreground: 'hsl(var(--ui-secondary-foreground))',
143+
},
144+
145+
accent: {
146+
DEFAULT: 'hsl(var(--ui-accent))',
147+
foreground: 'hsl(var(--ui-accent-foreground))',
148+
},
149+
150+
muted: {
151+
DEFAULT: 'hsl(var(--ui-muted))',
152+
foreground: 'hsl(var(--ui-muted-foreground))',
153+
},
154+
155+
popover: {
156+
DEFAULT: 'hsl(var(--ui-popover))',
157+
foreground: 'hsl(var(--ui-popover-foreground))',
158+
},
159+
160+
success: {
161+
DEFAULT: 'hsl(var(--ui-success))',
162+
foreground: 'hsl(var(--ui-success-foreground))',
163+
},
164+
165+
info: {
166+
DEFAULT: 'hsl(var(--ui-info))',
167+
foreground: 'hsl(var(--ui-info-foreground))',
168+
},
169+
170+
warning: {
171+
DEFAULT: 'hsl(var(--ui-warning))',
172+
foreground: 'hsl(var(--ui-warning-foreground))',
173+
},
174+
175+
destructive: {
176+
DEFAULT: 'hsl(var(--ui-destructive))',
177+
foreground: 'hsl(var(--ui-destructive-foreground))',
178+
},
179+
180+
card: {
181+
DEFAULT: 'hsl(var(--ui-card))',
182+
foreground: 'hsl(var(--ui-card-foreground))',
183+
},
153184
},
154185
container: {
155186
center: true,

0 commit comments

Comments
 (0)