@marigold/theme-rui 0.3.0 → 0.3.1

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.
@@ -0,0 +1,8 @@
1
+ @layer base {
2
+ body {
3
+ font-optical-sizing: auto;
4
+ font-style: normal;
5
+
6
+ @apply supports-[font-variation-settings:normal]:font-sans-variable text-foreground bg-background font-sans;
7
+ }
8
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ File: tailwind-components.css
3
+
4
+ Description
5
+ -----------
6
+ This file defines custom Tailwind CSS component classes by bundling commonly used utility classes
7
+ with the @apply directive. The goal is to reduce duplication, enhance maintainability, and ensure
8
+ a consistent styling pattern across various components.
9
+
10
+ Usage
11
+ -----
12
+ Import this file into your main stylesheet or reference it in your Tailwind CSS configuration.
13
+
14
+ Best Practices
15
+ --------------
16
+ - Encapsulate frequently used utility combinations into custom classes for better reusability.
17
+ - Update the definitions here to maintain consistency in our design system across all components.
18
+ - Keep custom classes focused on specific styling concerns to preserve clarity.
19
+ */
20
+ @layer utilities {
21
+ .mixin-ring-focus-visible {
22
+ @apply focus-visible:border-ring focus-visible:ring-ring/50 outline-none focus-visible:ring-[3px];
23
+ }
24
+
25
+ .mixin-ring-has-focus-visible {
26
+ @apply has-focus-visible:border-border has-focus-visible:ring-ring/50 has-focus-visible:ring-[3px];
27
+ }
28
+
29
+ .mixin-ring-focus-visible-checkbox {
30
+ @apply group-focus-visible/checkbox:ring-ring/50 group-focus-visible/checkbox:ring-[3px];
31
+ }
32
+
33
+ .mixin-ring-focus-visible-borderless {
34
+ @apply focus-visible:ring-ring/50 outline-none focus-visible:ring-[3px];
35
+ }
36
+
37
+ .mixin-ring-focus-within {
38
+ @apply focus-within:border-ring focus-within:ring-ring/50 outline-none focus-within:ring-[3px];
39
+ }
40
+
41
+ .mixin-disabled {
42
+ @apply disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed disabled:border-none disabled:shadow-none;
43
+ }
44
+ }
package/dist/theme.css CHANGED
@@ -1,4 +1,6 @@
1
- /*
1
+ @import './mixins.css';
2
+
3
+ /*
2
4
  TODO: how to do normalization so we doesn't break everything?
3
5
  TODO: omit "background" in the naming convention? (https://ui.shadcn.com/docs/theming#convention)
4
6
  TODO: create component styles files and compile to CSS classes?
@@ -154,5 +156,3 @@
154
156
  }
155
157
  }
156
158
  }
157
-
158
- @import './mixins.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/theme-rui",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Marigold RUI Theme",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -56,6 +56,6 @@
56
56
  "@marigold/theme-plugins": "1.0.1"
57
57
  },
58
58
  "scripts": {
59
- "build": "NODE_ENV=production tsup && postcss -o dist/styles.css src/styles.css && cp src/theme.css dist/theme.css"
59
+ "build": "NODE_ENV=production tsup && postcss -o dist/styles.css src/styles.css && cp src/theme.css src/global.css src/mixins.css dist/"
60
60
  }
61
61
  }