Skip to content

Commit 5d37a00

Browse files
committed
fix: resolve tailwind theme issues by using inline declarations
1 parent 5f30188 commit 5d37a00

File tree

4 files changed

+13
-28
lines changed

4 files changed

+13
-28
lines changed

.changeset/loose-buttons-tap.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@db-ux/core-foundations": patch
3+
"@db-ux/ngx-core-components": patch
4+
"@db-ux/react-core-components": patch
5+
"@db-ux/wc-core-components": patch
6+
"@db-ux/v-core-components": patch
7+
"@db-ux/core-components": patch
8+
---
9+
10+
fix: issue with tailwind duplicating some classes by using @theme inline

packages/foundations/tailwind/theme/colors.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,8 @@ $all-variants: list.append(
88
);
99

1010
// stylelint-disable-next-line scss/at-rule-no-unknown
11-
@theme {
11+
@theme inline {
1212
@each $color-name in $all-variants {
1313
@include colors-utils.get-color($color-name, $color-name);
1414
}
1515
}
16-
17-
@layer colors {
18-
@each $color-name in $all-variants {
19-
[data-color="#{$color-name}"],
20-
.db-color-#{$color-name} {
21-
@include colors-utils.get-color($color-name, "adaptive");
22-
}
23-
}
24-
}

packages/foundations/tailwind/theme/_variables.scss renamed to packages/foundations/tailwind/theme/dimensions.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@mixin get-variables() {
1+
// stylelint-disable-next-line scss/at-rule-no-unknown
2+
@theme inline {
23
--spacing-fix-3xs: var(--db-spacing-fixed-3xs);
34
--spacing-fix-2xs: var(--db-spacing-fixed-2xs);
45
--spacing-fix-xs: var(--db-spacing-fixed-xs);

packages/foundations/tailwind/theme/dimensions.scss

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)