frankenstyle 0.0.12 → 0.1.0-next.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 CHANGED
@@ -1,137 +1,38 @@
1
- > If you’re already happy with Tailwind CSS, there’s no reason for you to be here.
2
-
3
1
  # Frankenstyle
4
2
 
5
- Frankenstyle is a no-build, value-driven, fully responsive, utility-first CSS framework. It’s designed to be lightweight, production-ready, and to strike a balance between developer ergonomics and build size.
6
-
7
- For full documentation, visit [franken.style](https://franken.style).
8
-
9
- ## Installation
10
-
11
- Frankenstyle can be used via CDN or downloaded and referenced locally.
12
-
13
- ### CDN
14
-
15
- ```html
16
- <link
17
- rel="stylesheet"
18
- href="https://unpkg.com/frankenstyle@latest/dist/css/frankenstyle.min.css"
19
- />
20
- ```
21
-
22
- ### NPM
23
-
24
- ```bash
25
- npm i frankenstyle@latest
26
- ```
27
-
28
- Then import it in your `main.css`:
29
-
30
- ```css
31
- @import "frankenstyle/css/frankenstyle.css";
32
- ```
33
-
34
- ### JavaScript
35
-
36
- JavaScript is optional, but important for interactive states:
37
-
38
- ```html
39
- <script src="https://unpkg.com/frankenstyle@latest/dist/js/frankenstyle.min.js"></script>
40
- ```
41
-
42
- ## Core Concepts & Usage
43
-
44
- Think of Frankenstyle as _Tailwind CSS, but de-valued_. Frankenstyle provides the class, you provide the value.
45
-
46
- ```html
47
- <div class="m sm:m md:m" style="--m: 4; --sm-m: 8; --md-m: 16"></div>
48
- ```
49
-
50
- Behind the scenes, values are multiplied by a base spacing variable (e.g., `var(--spacing)`).
51
-
52
- Need arbitrary values? Wrap in brackets:
53
-
54
- ```html
55
- <div class="[m]" style="--m: 4px;"></div>
56
- ```
57
-
58
- You don’t need to memorize odd variable names — just drop special characters from the class.
59
-
60
- - `sm:m` → `--sm-m`
61
- - `dark:sm:bg:hover` → `--dark-sm-bg-hover`
62
-
63
- ### States
64
-
65
- Interactive states (e.g., hover) are generated on demand. Mark an element with `data-fs-interactive`, and the runtime will generate the necessary pseudo-state CSS.
66
-
67
- ```html
68
- <button
69
- type="button"
70
- class="color bg dark:bg bg:hover dark:bg:hover font-medium rounded-lg text-sm px py"
71
- style="
72
- --color: var(--color-white);
73
- --bg: var(--color-blue-700);
74
- --dark-bg: var(--color-pink-600);
75
- --bg-hover: var(--color-blue-800);
76
- --dark-bg-hover: var(--color-pink-700);
77
- --px: 5;
78
- --py: 2.5;
79
- "
80
- data-fs-interactive
81
- >
82
- Default
83
- </button>
84
- ```
3
+ Frankenstyle is the spiritual successor to **Franken UI** — our first project that fused UIkit with Tailwind CSS. This time, we’re rebuilding from the ground up with a sharper focus on simplicity, flexibility, and long-term maintainability.
85
4
 
86
- This avoids shipping huge CSS files for states up front — everything is generated at runtime when needed.
5
+ ## Documentation
87
6
 
88
- ### Dark Mode
7
+ The documentation website is still being updated, but you can refer to the **context files** for the most accurate and up-to-date information.
89
8
 
90
- Prefix color utilities with `dark:`:
9
+ ## Roadmap
91
10
 
92
- - `bg` `dark:bg`
93
- - `color` → `dark:color`
94
- - `border` → `dark:border`
95
- - `fill` → `dark:fill`
11
+ Here’s the current state of the project and where we’re headed next.
96
12
 
97
- ### Opacity
13
+ While **Franken UI** relied on mature libraries like Tailwind CSS and UIkit, the goal now is to build a more **granular**, **robust**, and **future-proof** foundation — essentially, our own ecosystem. The project is split into three parts:
98
14
 
99
- Suffix color utilities with `/o`. These require two variables (base + opacity) to avoid inheritance issues:
15
+ * **Frankenstyle** A no-build, value-driven, fully responsive, utility-first CSS framework.
16
+ * **Headless Web Components (HWC)** – A collection of unstyled, fully accessible, commonly used web components.
17
+ * **FrankenstyleKit** – The fusion of the two, featuring its own opinionated design system inspired by `coss ui`.
100
18
 
101
- ```html
102
- <div
103
- class="bg/o dark:bg/o"
104
- style="
105
- --bg: var(--color-blue-800);
106
- --bg-o: 80%;
107
- --dark-bg: var(--color-green-800);
108
- --dark-bg-o: 80%;
109
- "
110
- ></div>
111
- ```
19
+ Both Frankenstyle and HWC are fully detached and can be used independently — hence the creation of FrankenstyleKit.
112
20
 
113
- ### Responsiveness
21
+ ## Current Status
114
22
 
115
- Prefix classes with breakpoints:
23
+ * **Frankenstyle** Development is very active and open to the community.
24
+ * **Franken UI** – Now in Long-Term Support (LTS). No new features will be added, but bug fixes and dependency updates are guaranteed.
116
25
 
117
- - `sm:`
118
- - `md:`
119
- - `lg:`
120
- - `xl:`
121
- - `2xl:`
26
+ ## Support
122
27
 
123
- ```html
124
- <div class="p sm:p md:p" style="--p: 4; --sm-p: 8; --md-p: 16"></div>
125
- ```
28
+ Right now, the project is **unsustainable** — it has no commercial backing or paid projects and relies solely on donors, a few sponsors from Franken UI, and, of course, my own boredom and availability.
126
29
 
127
- ## Key Differences from Tailwind
30
+ There’s a lot to do, and I’d love to see this project thrive.
31
+ If you’d like to support the work, you can do so here:
128
32
 
129
- - **No config, no file watchers** → everything is statically pre-built.
130
- - **Value-driven utilities** → use `m` + `--m: 8` or `[m]` for arbitrary values, not `m-8` or `m-[8px]`.
131
- - **State syntax is reversed** → `bg:hover` instead of `hover:bg-blue-600`.
132
- - **Runtime state generation** → hover/active CSS is created on the fly, keeping static builds small.
133
- - **Familiar patterns** → utilities, responsive prefixes, and naming feel similar to Tailwind.
33
+ * **GitHub Sponsors:** [https://github.com/sponsors/sveltecult](https://github.com/sponsors/sveltecult)
34
+ * **Ko-fi:** [https://ko-fi.com/sveltecult](https://ko-fi.com/sveltecult)
134
35
 
135
36
  ## License
136
37
 
137
- Licensed under the [MIT license](https://github.com/franken-ui/ui/blob/master/LICENSE.md).
38
+ Licensed under the [MIT License](https://github.com/franken-ui/ui/blob/master/LICENSE.md).