@dot-system/css-utility 0.1.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/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # DOT System - Css Utility
2
+
3
+ @dot-system/css-utility is a lightweight, atomic CSS utility framework designed for scalable applications. It provides dot-prefixed utility classes powered by design tokens, along with built-in clsx and intelligent class merge utilities for clean and conflict-free class composition.
4
+
5
+
6
+ ✨ Features
7
+
8
+ 🎯 Dot-prefixed atomic utility classes (.d-*)
9
+
10
+ 🧠 Built-in clsx utility for conditional class handling
11
+
12
+ 🔀 Smart class merge function to resolve utility conflicts
13
+
14
+ 📦 Optimized for shared dependency usage
15
+
16
+ 🏗 Designed for modular and scalable architectures
17
+
18
+ ⚡ Lightweight and predictable CSS output
19
+
20
+ 🧩 Works seamlessly with CSS Modules and global styles
21
+
22
+ # 0.1.0
23
+ - Package Introduced
24
+ - Css Utility Classes Added
25
+ - Clsx and dotMerge Funtion Introduced
26
+ - cva , cn , csv Functions Introduced
27
+
package/cbt.config.js ADDED
@@ -0,0 +1,39 @@
1
+
2
+ const path = require('path');
3
+
4
+ exports.config = {
5
+ enableTypeScript: true,
6
+ preProcess: {
7
+ enable: true,
8
+ runner: './preprocess/index.js'
9
+ },
10
+ css: {
11
+ plugins: {
12
+ rtl: {
13
+ enable: true,
14
+ patterns: [
15
+ '**/src/**/*.css'
16
+ ]
17
+ },
18
+ cssVariableReplacement: {
19
+ enable: true,
20
+ configFile:
21
+ './node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json',
22
+ patterns: [
23
+ "**/src/**"
24
+ ]
25
+ }
26
+ },
27
+ customPlugins: [
28
+ {
29
+ plugin: (options) =>
30
+ require('postcss-discard-comments')({
31
+ remove: (c) => { return c.includes('rtl:') }
32
+ }),
33
+ patterns: ['**/assets/**/*.css'],
34
+ enable: false
35
+ }
36
+ ]
37
+ }
38
+
39
+ };