fresh-normalize 0.0.0-semantic

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 YOUR_NAME
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,164 @@
1
+ # 🌿 fresh-normalize
2
+
3
+ <div align="center">
4
+
5
+ **The freshest CSS reset for the web of 2026** ✨
6
+
7
+ _Beautifully consistent. Effortlessly modern. Zero opinions, maximum harmony._
8
+
9
+ **Lightweight β€’ Accessible β€’ Dark-mode native β€’ Themed with love**
10
+
11
+ ---
12
+
13
+ ![License](https://img.shields.io/badge/license-MIT-8b5cf6?style=for-the-badge)
14
+
15
+ **Made for the browsers of tomorrow. Feels like magic today.**
16
+
17
+ </div>
18
+
19
+ ---
20
+
21
+ ## Why fresh-normalize? 🌟
22
+
23
+ Tired of fighting browser quirks? **fresh-normalize** is a forward-thinking CSS normalization
24
+ library built exclusively for the modern web.
25
+
26
+ It smooths out inconsistencies, injects delightful accessible defaults, and hands you full creative
27
+ control through **25+ reactive CSS custom properties**.
28
+
29
+ > [!TIP] No heavy design systems. No legacy baggage. Just pure, fresh harmony for your next
30
+ > masterpiece.
31
+
32
+ ### πŸ’Ž Key Benefits
33
+
34
+ | Feature | What Makes It Fresh |
35
+ | :--------------------- | :---------------------------------------------------------------------- |
36
+ | 🎯 **Evergreen Only** | Optimized for Chrome 120+, Safari 17+, and beyond. |
37
+ | πŸŒ“ **Auto-Adaptive** | Native `prefers-color-scheme` support with gorgeous dark-mode defaults. |
38
+ | β™Ώ **A11y First** | Intelligent `focus-visible`, skip links, and reduced motion built-in. |
39
+ | 🎨 **Live Theming** | 25+ design tokensβ€”change your entire brand vibe in seconds. |
40
+ | πŸ“± **Fluid Viewports** | Touch-friendly logic using dynamic viewport units (`dvh`, `dvw`). |
41
+ | ⚑ **Zero Bloat** | Pure CSS. No JavaScript. No dependencies. |
42
+
43
+ ---
44
+
45
+ ## Fresh vs. The Old Guard πŸ₯Š
46
+
47
+ | Feature | fresh-normalize | normalize.css | sanitize.css | CSS Reset |
48
+ | :----------------- | :----------------: | :-----------: | :----------: | :-------: |
49
+ | **Dark Mode** | βœ… Built-in | ❌ | ❌ | ❌ |
50
+ | **CSS Variables** | βœ… 25+ tokens | ❌ | ❌ | ❌ |
51
+ | **Accessibility** | βœ… A11y-native | ⚠️ Basic | ⚠️ Basic | ❌ |
52
+ | **Focus States** | βœ… `focus-visible` | ❌ | ⚠️ Basic | ❌ |
53
+ | **Form Controls** | βœ… Modernized | ⚠️ Partial | ⚠️ Partial | ❌ |
54
+ | **Size (gzipped)** | **~8 KB** | ~2 KB | ~3 KB | ~0.5 KB |
55
+
56
+ ---
57
+
58
+ ## Quick Start πŸš€
59
+
60
+ ### 1. Install
61
+
62
+ ```bash
63
+ # Pick your poison
64
+ npm install fresh-normalize
65
+ pnpm add fresh-normalize
66
+ yarn add fresh-normalize
67
+ ```
68
+
69
+ ### 2\. Implementation
70
+
71
+ Simply drop the CDN link into your `<head>`:
72
+
73
+ ```html
74
+ <link
75
+ rel="stylesheet"
76
+ href="[https://cdn.jsdelivr.net/npm/fresh-normalize/fresh-normalize.css](https://cdn.jsdelivr.net/npm/fresh-normalize/fresh-normalize.css)"
77
+ />
78
+ ```
79
+
80
+ **Or import it directly in your CSS architecture:**
81
+
82
+ ```css
83
+ @import 'fresh-normalize';
84
+
85
+ :root {
86
+ --fn-link-color: #22d3ee; /* Set your vibe */
87
+ --fn-font-sans: 'Geist', sans-serif;
88
+ }
89
+ ```
90
+
91
+ ---
92
+
93
+ ## What Makes It Feel Alive ✨
94
+
95
+ ### πŸŒ“ Automatic Dark Mode
96
+
97
+ No more flashing white screens. It detects system preferences instantly and applies a curated dark
98
+ palette that’s easy on the eyes.
99
+
100
+ ### πŸ“‹ Form Controls That Don’t Suck
101
+
102
+ Sliders, date pickers, and checkboxes are finally consistent. We’ve handled the weird Webkit/Mozilla
103
+ pseudo-elements so you don't have to.
104
+
105
+ ### πŸ›  Utility Classes Included
106
+
107
+ ```html
108
+ <span class="sr-only">Hidden but screen-reader friendly</span>
109
+ <a href="#main" class="skip-link">Skip to content</a>
110
+ ```
111
+
112
+ ---
113
+
114
+ ## Customization β€” Your Style, Instantly 🎨
115
+
116
+ Everything is controlled by CSS Variables. Overriding them is as simple as:
117
+
118
+ ```css
119
+ :root {
120
+ /* Brand Identity */
121
+ --fn-accent-color: #a78bfa;
122
+ --fn-focus-color: #ec4899;
123
+
124
+ /* Typography */
125
+ --fn-line-height: 1.65;
126
+ --fn-radius: 0.75rem;
127
+
128
+ /* Scrollbar Aesthetics */
129
+ --fn-scrollbar-thumb: #4ade80;
130
+ }
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Browser Support 🌐
136
+
137
+ **Only the future matters.** We support the last 2 major versions of:
138
+
139
+ - βœ… Chrome & Edge (120+)
140
+ - βœ… Firefox (120+)
141
+ - βœ… Safari (17+)
142
+ - βœ… Chrome Android & iOS Safari
143
+
144
+ ---
145
+
146
+ ## Contributing 🀝
147
+
148
+ We ❀️ fresh ideas\!
149
+
150
+ 1. **Fork** the repository.
151
+ 2. **Create** your feature branch: `git checkout -b feature/fresh-idea`.
152
+ 3. **Commit** your changes: `git commit -m 'Add some freshness'`.
153
+ 4. **Push** to the branch: `git push origin feature/fresh-idea`.
154
+ 5. **Open** a Pull Request.
155
+
156
+ ---
157
+
158
+ **Made with ❀️ for the modern web**
159
+
160
+ [Contributing](https://www.google.com/search?q=CONTRIBUTING.md) β€’
161
+ [License](https://www.google.com/search?q=LICENSE) β€’
162
+ [Changelog](https://www.google.com/search?q=CHANGELOG.md)
163
+
164
+ [⬆ Back to top](https://www.google.com/search?q=%23-fresh-normalize)
@@ -0,0 +1 @@
1
+ /*! fresh-normalize v1.0.0 | MIT License | https://github.com/YOUR_USERNAME/fresh-normalize */:root{--fn-font-sans:system-ui,ui-sans-serif,"Segoe UI",roboto,helvetica,arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";--fn-font-mono:ui-monospace,"Cascadia Code","Source Code Pro",menlo,consolas,"DejaVu Sans Mono",monospace;--fn-font-serif:ui-serif,georgia,cambria,"Times New Roman",times,serif;--fn-tab-size:4;--fn-line-height:1.5;--fn-heading-line-height:1.2;--fn-focus-color:#005fcc;--fn-focus-width:3px;--fn-focus-offset:2px;--fn-text-color:#1a1a1a;--fn-bg-color:#fff;--fn-link-color:#005fcc;--fn-link-visited-color:#7c3aed;--fn-border-color:#d1d5db;--fn-mark-bg:#fef08a;--fn-mark-color:#1a1a1a;--fn-selection-bg:#bfdbfe;--fn-selection-color:#1e3a5f;--fn-scrollbar-width:thin;--fn-scrollbar-track:#f1f5f9;--fn-scrollbar-thumb:#94a3b8;--fn-scrollbar-thumb-hover:#64748b;--fn-accent-color:#005fcc;--fn-caret-color:#005fcc;--fn-error-color:#dc2626;--fn-success-color:#16a34a}@media (prefers-color-scheme:dark){:root{--fn-text-color:#f1f5f9;--fn-bg-color:#0f172a;--fn-link-color:#60a5fa;--fn-link-visited-color:#c084fc;--fn-border-color:#334155;--fn-mark-bg:#854d0e;--fn-mark-color:#fef9c3;--fn-selection-bg:#1e40af;--fn-selection-color:#dbeafe;--fn-scrollbar-track:#1e293b;--fn-scrollbar-thumb:#475569;--fn-scrollbar-thumb-hover:#64748b}}*,::after,::before{box-sizing:border-box}html{font-family:var(--fn-font-sans);line-height:var(--fn-line-height);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;tab-size:var(--fn-tab-size);scroll-behavior:smooth;scrollbar-gutter:stable;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color-scheme:light dark;-webkit-tap-highlight-color:transparent;touch-action:manipulation;hanging-punctuation:first last;text-wrap:pretty;word-break:normal;overflow-wrap:anywhere;accent-color:var(--fn-accent-color);caret-color:var(--fn-caret-color)}body{margin:0;color:var(--fn-text-color);background-color:var(--fn-bg-color);min-block-size:100vh;min-block-size:100dvh;text-underline-offset:0.1em}h1{font-size:2em;margin-block:0.67em}h1,h2,h3,h4,h5,h6{line-height:var(--fn-heading-line-height)}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--fn-font-mono);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}abbr[title]{text-decoration:underline dotted;cursor:help}q{quotes:auto}hr{border:none;border-block-start:1px solid var(--fn-border-color);margin-block:1em;color:inherit;height:0}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}::selection{background-color:var(--fn-selection-bg,#bfdbfe);color:var(--fn-selection-color,#1e3a5f);text-shadow:none}mark{background-color:var(--fn-mark-bg,#fef08a);color:var(--fn-mark-color,#1a1a1a);padding-inline:0.25em;border-radius:2px}dfn{font-style:italic;font-weight:500}address{font-style:normal;margin-block:0}ins{text-decoration:none;background-color:#bbf7d0;color:#166534}del{text-decoration:line-through;background-color:#fecaca;color:#991b1b}bdi{unicode-bidi:isolate}bdo{unicode-bidi:bidi-override}nav ol,nav ul,ol[role=list],ul[role=list]{list-style:none;margin:0;padding:0}a{background-color:transparent;color:var(--fn-link-color)}a:visited{color:var(--fn-link-visited-color)}a:focus-visible{outline:var(--fn-focus-width) solid var(--fn-focus-color);outline-offset:var(--fn-focus-offset);border-radius:2px}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}canvas,img,video{max-inline-size:100%;block-size:auto}img{border-style:none}svg{overflow:hidden}audio:not([controls]){display:none;height:0}figure{margin:0;padding:0}figcaption{font-size:.875em;font-style:italic}picture{display:contents}table{border-color:currentColor;border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;color:inherit}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;appearance:auto;cursor:pointer}fieldset{border:0;margin:0;padding:0}legend{padding:0;max-inline-size:100%;white-space:normal}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}::file-selector-button{font:inherit;-webkit-appearance:button;appearance:auto}textarea{resize:vertical;overflow:auto}::placeholder{opacity:54%;color:inherit}[type=color]{block-size:2.5em;inline-size:2.5em;cursor:pointer;padding:0;border:1px solid var(--fn-border-color);border-radius:4px}input[type=range]{-webkit-appearance:none;appearance:none;background:0 0;cursor:pointer;inline-size:100%}input[type=range]::-webkit-slider-runnable-track{background:var(--fn-border-color);block-size:4px;border-radius:2px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--fn-link-color);block-size:16px;inline-size:16px;border-radius:50%;margin-block-start:-6px;border:2px solid var(--fn-bg-color)}input[type=range]::-moz-range-track{background:var(--fn-border-color);block-size:4px;border-radius:2px}input[type=range]::-moz-range-thumb{background:var(--fn-link-color);block-size:16px;inline-size:16px;border-radius:50%;border:2px solid var(--fn-bg-color)}input[type=date],input[type=datetime-local],input[type=month],input[type=time],input[type=week]{-webkit-appearance:none;appearance:none;min-block-size:2.5em}meter{-webkit-appearance:none;appearance:none;inline-size:100%;block-size:1em;vertical-align:middle;border-radius:4px;overflow:hidden}meter::-webkit-meter-bar{background:var(--fn-scrollbar-track);border-radius:4px}meter::-webkit-meter-optimum-value{background:#22c55e}meter::-webkit-meter-suboptimum-value{background:#eab308}meter::-webkit-meter-even-less-good-value{background:#ef4444}meter::-moz-meter-bar{background:#22c55e;border-radius:4px}output{display:inline-block;font-family:var(--fn-font-mono);font-size:.875em}button:disabled,input:disabled,optgroup:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:60%}input:read-only,textarea:read-only{cursor:default}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,select:-webkit-autofill,select:-webkit-autofill:focus,select:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{-webkit-box-shadow:0 0 0 1000px var(--fn-bg-color) inset;-webkit-text-fill-color:var(--fn-text-color);caret-color:var(--fn-text-color);transition:background-color 5000s ease-in-out 0s}input:user-invalid,select:user-invalid,textarea:user-invalid{border-color:var(--fn-error-color)}input:user-valid,select:user-valid,textarea:user-valid{border-color:var(--fn-success-color)}summary{display:list-item;cursor:pointer}details{display:block}[hidden],template{display:none}dialog{background-color:var(--fn-bg-color);color:var(--fn-text-color);border:1px solid var(--fn-border-color);border-radius:8px;padding:1.5em;max-inline-size:min(90vw,560px)}dialog::backdrop{background-color:rgb(0 0 0 / 50%);backdrop-filter:blur(2px)}:is([popover]){border:1px solid var(--fn-border-color);border-radius:8px;padding:1em;background-color:var(--fn-bg-color);color:var(--fn-text-color)}:focus-visible{outline:var(--fn-focus-width) solid var(--fn-focus-color);outline-offset:var(--fn-focus-offset)}:focus:not(:focus-visible){outline:0}.sr-only{clip:rect(0,0,0,0);clip-path:inset(50%);block-size:1px;inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}.skip-link{clip:rect(0,0,0,0);clip-path:inset(50%);block-size:1px;inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}.skip-link:focus{clip:auto;clip-path:none;block-size:auto;inline-size:auto;background-color:var(--fn-bg-color);color:var(--fn-link-color);font-weight:700;padding:.5em 1em;position:fixed;inset-block-start:1em;inset-inline-start:1em;z-index:999;border-radius:4px;border:2px solid var(--fn-focus-color);text-decoration:none}@media (prefers-contrast:more){:root{--fn-text-color:#000;--fn-bg-color:#fff;--fn-border-color:#000;--fn-link-color:#00e;--fn-link-visited-color:#551a8b;--fn-focus-color:#000}::selection{background-color:#000;color:#fff}:focus-visible,a:focus-visible{outline:3px solid #000;outline-offset:2px}}@media (forced-colors:active){:focus-visible{outline:3px solid CanvasText;outline-offset:2px}.skip-link,.sr-only{clip:rect(0,0,0,0);position:absolute}.skip-link:focus{clip:auto;position:fixed}[type=button],[type=reset],[type=submit],button{border:1px solid ButtonText}input,select,textarea{border:1px solid ButtonText}input[type=checkbox],input[type=radio]{border:2px solid ButtonText}mark{background-color:Highlight;color:HighlightText}}[dir=rtl]{text-align:right}[dir=ltr]{text-align:left}*{scrollbar-width:var(--fn-scrollbar-width);scrollbar-color:var(--fn-scrollbar-thumb) var(--fn-scrollbar-track)}::-webkit-scrollbar{inline-size:8px;block-size:8px}::-webkit-scrollbar-track{background:var(--fn-scrollbar-track)}::-webkit-scrollbar-thumb{background:var(--fn-scrollbar-thumb);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--fn-scrollbar-thumb-hover)}@media (prefers-reduced-motion:reduce){*,::after,::before{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}}@media print{*,::after,::before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]::after{content:" (" attr(href) ")";font-size:.8em}abbr[title]::after{content:" (" attr(title) ")"}blockquote,figure,img,pre,table{break-inside:avoid}img{max-inline-size:100%!important}h2,h3{break-after:avoid}p{orphans:3;widows:3}}