@auriel/peppertino 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/LICENSE +21 -0
- package/README.md +207 -0
- package/build.js +38 -0
- package/index.html +218 -0
- package/package.json +26 -0
- package/src/js/header.js +45 -0
- package/src/scss/base.scss +191 -0
- package/src/scss/button.scss +54 -0
- package/src/scss/gradient.scss +11 -0
- package/src/scss/header.scss +217 -0
- package/src/scss/main.scss +9 -0
- package/src/scss/reset.scss +84 -0
- package/src/scss/section.scss +79 -0
- package/src/scss/table.scss +89 -0
- package/src/scss/typography.scss +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Debaditya Malakar
|
|
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,207 @@
|
|
|
1
|
+
# PeppertinoCSS — An Apple-inspired CSS framework with a little spice.
|
|
2
|
+
|
|
3
|
+
PeppertinoCSS is an Apple-inspired CSS framework built with SCSS, featuring the clean geometry and restrained elegance of Cupertino design — but with a spicy red accent instead of blue, because we're not Apple and we're not pretending to be.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Getting started
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @auriel/peppertino
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or clone and build locally:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://codeberg.org/debaditya/Peppertino
|
|
17
|
+
cd peppetino-css
|
|
18
|
+
npm install
|
|
19
|
+
npm run dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then open `http://localhost:3000` in your browser.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Build scripts
|
|
27
|
+
|
|
28
|
+
| Command | Description |
|
|
29
|
+
|---|---|
|
|
30
|
+
| `npm run build` | Compile SCSS + JS to `dist/` |
|
|
31
|
+
| `npm run build:css` | SCSS only, expanded with sourcemap |
|
|
32
|
+
| `npm run build:css:min` | SCSS minified, no sourcemap |
|
|
33
|
+
| `npm run build:js` | Bundle all `src/js/` components via esbuild |
|
|
34
|
+
| `npm run watch:css` | Watch and recompile SCSS on save |
|
|
35
|
+
| `npm run watch:js` | Watch and rebundle JS on save |
|
|
36
|
+
| `npm run serve` | Serve project on `http://localhost:3000` |
|
|
37
|
+
| `npm run dev` | Build + watch CSS/JS + serve, all in parallel |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## What's inside
|
|
42
|
+
|
|
43
|
+
### SCSS modules (`src/scss/`)
|
|
44
|
+
|
|
45
|
+
| File | Purpose |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `reset.scss` | Opinionated modern reset |
|
|
48
|
+
| `base.scss` | Design tokens, helper functions, base element styles |
|
|
49
|
+
| `button.scss` | `.button`, `.button-outline` |
|
|
50
|
+
| `gradient.scss` | `.gradient-txt` |
|
|
51
|
+
| `header.scss` | `.pp-header` — glassmorphism sticky header |
|
|
52
|
+
| `section.scss` | `.pp-section` — full-viewport sections + custom scrollbar |
|
|
53
|
+
| `table.scss` | `.pp-table` — clean Apple-style data tables |
|
|
54
|
+
| `typography.scss` | Utility classes for font, size, weight, spacing |
|
|
55
|
+
|
|
56
|
+
### JS components (`src/js/`)
|
|
57
|
+
|
|
58
|
+
| File | Purpose |
|
|
59
|
+
|---|---|
|
|
60
|
+
| `header.js` | Mobile drawer toggle + dropdown handling for `.pp-header` |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Design tokens (base.scss)
|
|
65
|
+
|
|
66
|
+
### Colors
|
|
67
|
+
|
|
68
|
+
```scss
|
|
69
|
+
$color-primary: #e90111 // spicy red
|
|
70
|
+
$color-primary-light: #ff4d5a
|
|
71
|
+
$color-primary-dark: #a8000c
|
|
72
|
+
|
|
73
|
+
$gradient-start: #ffcf67
|
|
74
|
+
$gradient-end: #ea5753
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Typography
|
|
78
|
+
|
|
79
|
+
```scss
|
|
80
|
+
$font-sans: 'Inter', system-ui, ...
|
|
81
|
+
$font-mono: 'Kode Mono', ui-monospace, ...
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Both fonts are loaded from Google Fonts automatically via `base.scss`.
|
|
85
|
+
|
|
86
|
+
### Spacing, radius, shadows, breakpoints
|
|
87
|
+
|
|
88
|
+
All defined as SCSS maps in `base.scss` and accessible via helper functions:
|
|
89
|
+
|
|
90
|
+
```scss
|
|
91
|
+
spacing(4) // → 1rem
|
|
92
|
+
font-size('2xl') // → 1.5rem
|
|
93
|
+
radius('lg') // → 0.5rem
|
|
94
|
+
z('modal') // → 200
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Responsive mixin
|
|
98
|
+
|
|
99
|
+
```scss
|
|
100
|
+
@include respond-to('md') {
|
|
101
|
+
// min-width: 768px
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Breakpoints: `sm` 640px · `md` 768px · `lg` 1024px · `xl` 1280px · `2xl` 1536px
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Typography utilities
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<p class="font-sans font-700 text-2xl tracking-tight">Hello</p>
|
|
113
|
+
<p class="font-mono font-400 text-sm leading-relaxed">code prose</p>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
| Category | Classes |
|
|
117
|
+
|---|---|
|
|
118
|
+
| Family | `.font-sans` `.font-mono` |
|
|
119
|
+
| Weight | `.font-100` → `.font-900` |
|
|
120
|
+
| Size | `.text-xs` `.text-sm` `.text-base` `.text-lg` `.text-xl` `.text-2xl` `.text-3xl` `.text-4xl` `.text-5xl` |
|
|
121
|
+
| Line height | `.leading-none` `.leading-tight` `.leading-snug` `.leading-normal` `.leading-relaxed` `.leading-loose` |
|
|
122
|
+
| Tracking | `.tracking-tighter` `.tracking-tight` `.tracking-normal` `.tracking-wide` `.tracking-wider` `.tracking-widest` |
|
|
123
|
+
| Alignment | `.text-left` `.text-center` `.text-right` |
|
|
124
|
+
| Transform | `.uppercase` `.lowercase` `.capitalize` |
|
|
125
|
+
| Decoration | `.underline` `.no-underline` `.line-through` |
|
|
126
|
+
| Overflow | `.truncate` `.wrap-balance` |
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Components
|
|
131
|
+
|
|
132
|
+
### Button
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<button class="button">Filled</button>
|
|
136
|
+
<button class="button-outline">Outline</button>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Gradient text
|
|
140
|
+
|
|
141
|
+
```html
|
|
142
|
+
<h1 class="gradient-txt">PeppertinoCSS</h1>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Gradient colors are driven by `$gradient-start` and `$gradient-end` in `base.scss`.
|
|
146
|
+
|
|
147
|
+
### Header
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<header class="pp-header">
|
|
151
|
+
<a href="#" class="pp-header__brand">Brand</a>
|
|
152
|
+
<nav>
|
|
153
|
+
<ul class="pp-header__nav">
|
|
154
|
+
<li class="pp-header__nav-item">
|
|
155
|
+
<a href="#" class="pp-header__nav-link">Link</a>
|
|
156
|
+
</li>
|
|
157
|
+
<li class="pp-header__nav-item">
|
|
158
|
+
<a href="#" class="pp-header__nav-link">Dropdown</a>
|
|
159
|
+
<ul class="pp-header__dropdown">
|
|
160
|
+
<li><a href="#" class="pp-header__dropdown-link">Item</a></li>
|
|
161
|
+
</ul>
|
|
162
|
+
</li>
|
|
163
|
+
</ul>
|
|
164
|
+
</nav>
|
|
165
|
+
<button class="pp-header__toggle" aria-expanded="false" aria-label="Toggle navigation">
|
|
166
|
+
<span></span><span></span><span></span>
|
|
167
|
+
</button>
|
|
168
|
+
</header>
|
|
169
|
+
<script src="dist/header.js" defer></script>
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Sticky, glassmorphism background. Dropdowns appear on hover (desktop) or tap (mobile). The hamburger toggle animates to × when open.
|
|
173
|
+
|
|
174
|
+
### Section
|
|
175
|
+
|
|
176
|
+
```html
|
|
177
|
+
<section class="pp-section">
|
|
178
|
+
<div class="pp-section__inner">
|
|
179
|
+
<!-- content -->
|
|
180
|
+
</div>
|
|
181
|
+
</section>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Variants: `pp-section--primary` · `pp-section--dark` · `pp-section--muted` · `pp-section--gradient`
|
|
185
|
+
|
|
186
|
+
### Table
|
|
187
|
+
|
|
188
|
+
```html
|
|
189
|
+
<table class="pp-table pp-table--cols-3">
|
|
190
|
+
<tbody>
|
|
191
|
+
<tr><td>Label</td><td>Value A</td><td>Value B</td></tr>
|
|
192
|
+
</tbody>
|
|
193
|
+
</table>
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Column helpers: `.pp-table--cols-1` → `.pp-table--cols-4`
|
|
197
|
+
Variants: `.pp-table--striped` · `.pp-table--bordered` · `.pp-table--compact` · `.pp-table--flush`
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## License
|
|
202
|
+
|
|
203
|
+
MIT — see [LICENSE](LICENSE)
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
[Codeberg](https://codeberg.org/debaditya/Peppertino)
|
package/build.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// PeppertinoCSS — esbuild bundler (per-component JS output)
|
|
2
|
+
const esbuild = require('esbuild');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
|
|
6
|
+
const isWatch = process.argv.includes('--watch');
|
|
7
|
+
|
|
8
|
+
const components = fs
|
|
9
|
+
.readdirSync('src/js')
|
|
10
|
+
.filter((f) => f.endsWith('.js'))
|
|
11
|
+
.map((f) => path.join('src/js', f));
|
|
12
|
+
|
|
13
|
+
if (components.length === 0) {
|
|
14
|
+
console.log('[esbuild] No JS components found in src/js/ — skipping.');
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const buildOptions = {
|
|
19
|
+
entryPoints: components,
|
|
20
|
+
outdir: 'dist',
|
|
21
|
+
bundle: true,
|
|
22
|
+
format: 'iife',
|
|
23
|
+
platform: 'browser',
|
|
24
|
+
target: ['es2018'],
|
|
25
|
+
sourcemap: true,
|
|
26
|
+
minify: false,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
if (isWatch) {
|
|
30
|
+
esbuild.context(buildOptions).then((ctx) => {
|
|
31
|
+
ctx.watch();
|
|
32
|
+
console.log('[esbuild] Watching src/js/ for changes...');
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
esbuild.build(buildOptions).then(() => {
|
|
36
|
+
console.log(`[esbuild] Built ${components.length} component(s) → dist/`);
|
|
37
|
+
});
|
|
38
|
+
}
|
package/index.html
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>PeppertinoCSS — Dev Sandbox</title>
|
|
7
|
+
<link rel="stylesheet" href="dist/main.css" />
|
|
8
|
+
<script src="dist/header.js" defer></script>
|
|
9
|
+
<style>
|
|
10
|
+
/* Sandbox-only helpers — not part of the framework */
|
|
11
|
+
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
|
|
12
|
+
.swatch { display: inline-block; width: 2.5rem; height: 2.5rem; border-radius: 0.25rem; border: 1px solid rgba(0,0,0,.1); }
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<header class="pp-header">
|
|
18
|
+
<a href="#hero" class="pp-header__brand font-sans font-600">PeppertinoCSS</a>
|
|
19
|
+
<nav>
|
|
20
|
+
<ul class="pp-header__nav">
|
|
21
|
+
<li class="pp-header__nav-item">
|
|
22
|
+
<a href="#colors" class="pp-header__nav-link font-sans font-400">Colors</a>
|
|
23
|
+
</li>
|
|
24
|
+
<li class="pp-header__nav-item">
|
|
25
|
+
<a href="#typography" class="pp-header__nav-link font-sans font-400">Typography</a>
|
|
26
|
+
</li>
|
|
27
|
+
<li class="pp-header__nav-item">
|
|
28
|
+
<a href="#components" class="pp-header__nav-link font-sans font-400">Components</a>
|
|
29
|
+
<ul class="pp-header__dropdown">
|
|
30
|
+
<li><a href="#buttons" class="pp-header__dropdown-link font-sans font-400">Buttons</a></li>
|
|
31
|
+
<li><a href="#gradient" class="pp-header__dropdown-link font-sans font-400">Gradient</a></li>
|
|
32
|
+
<li><a href="#tables" class="pp-header__dropdown-link font-sans font-400">Tables</a></li>
|
|
33
|
+
</ul>
|
|
34
|
+
</li>
|
|
35
|
+
</ul>
|
|
36
|
+
</nav>
|
|
37
|
+
<button class="pp-header__toggle" aria-expanded="false" aria-label="Toggle navigation">
|
|
38
|
+
<span></span><span></span><span></span>
|
|
39
|
+
</button>
|
|
40
|
+
</header>
|
|
41
|
+
|
|
42
|
+
<!-- Hero -->
|
|
43
|
+
<section id="hero" class="pp-section pp-section--gradient">
|
|
44
|
+
<div class="pp-section__inner">
|
|
45
|
+
<h1 class="font-sans font-700 tracking-tight">PeppertinoCSS</h1>
|
|
46
|
+
<p class="font-sans font-400 text-lg leading-relaxed">A modern, opinionated SCSS framework. Fast to build with, easy to extend.</p>
|
|
47
|
+
<div class="row">
|
|
48
|
+
<button class="button font-sans font-400" style="background:#fff;color:#ea5753;">Get Started</button>
|
|
49
|
+
<button class="button-outline font-sans font-400" style="border-color:#fff;color:#fff;">View Source</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</section>
|
|
53
|
+
|
|
54
|
+
<!-- Colors -->
|
|
55
|
+
<section id="colors" class="pp-section pp-section--muted">
|
|
56
|
+
<div class="pp-section__inner">
|
|
57
|
+
<h2 class="font-sans font-700 tracking-tight">Color Palette</h2>
|
|
58
|
+
|
|
59
|
+
<div>
|
|
60
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Primary</p>
|
|
61
|
+
<div class="row">
|
|
62
|
+
<span class="swatch" style="background:#ff4d5a" title="primary-light"></span>
|
|
63
|
+
<span class="swatch" style="background:#e90111" title="primary"></span>
|
|
64
|
+
<span class="swatch" style="background:#a8000c" title="primary-dark"></span>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div>
|
|
69
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Gradient</p>
|
|
70
|
+
<div class="row">
|
|
71
|
+
<span class="swatch" style="background:#ffcf67" title="gradient-start"></span>
|
|
72
|
+
<span class="swatch" style="background:#ea5753" title="gradient-end"></span>
|
|
73
|
+
<span class="swatch" style="background:linear-gradient(135deg,#ffcf67,#ea5753)" title="gradient"></span>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div>
|
|
78
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Neutrals</p>
|
|
79
|
+
<div class="row">
|
|
80
|
+
<span class="swatch" style="background:#fafafa"></span>
|
|
81
|
+
<span class="swatch" style="background:#f4f4f5"></span>
|
|
82
|
+
<span class="swatch" style="background:#e4e4e7"></span>
|
|
83
|
+
<span class="swatch" style="background:#d4d4d8"></span>
|
|
84
|
+
<span class="swatch" style="background:#a1a1aa"></span>
|
|
85
|
+
<span class="swatch" style="background:#71717a"></span>
|
|
86
|
+
<span class="swatch" style="background:#52525b"></span>
|
|
87
|
+
<span class="swatch" style="background:#3f3f46"></span>
|
|
88
|
+
<span class="swatch" style="background:#27272a"></span>
|
|
89
|
+
<span class="swatch" style="background:#18181b"></span>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div>
|
|
94
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Semantic</p>
|
|
95
|
+
<div class="row">
|
|
96
|
+
<span class="swatch" style="background:#22c55e" title="success"></span>
|
|
97
|
+
<span class="swatch" style="background:#f59e0b" title="warning"></span>
|
|
98
|
+
<span class="swatch" style="background:#ef4444" title="error"></span>
|
|
99
|
+
<span class="swatch" style="background:#3b82f6" title="info"></span>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</section>
|
|
104
|
+
|
|
105
|
+
<!-- Typography -->
|
|
106
|
+
<section id="typography" class="pp-section">
|
|
107
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;">
|
|
108
|
+
<h2 class="font-sans font-700 tracking-tight">Typography</h2>
|
|
109
|
+
|
|
110
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;">Sans — Inter</p>
|
|
111
|
+
<p class="font-sans font-100 text-2xl">100 Thin — The quick brown fox</p>
|
|
112
|
+
<p class="font-sans font-200 text-2xl">200 ExtraLight — The quick brown fox</p>
|
|
113
|
+
<p class="font-sans font-300 text-2xl">300 Light — The quick brown fox</p>
|
|
114
|
+
<p class="font-sans font-400 text-2xl">400 Regular — The quick brown fox</p>
|
|
115
|
+
<p class="font-sans font-500 text-2xl">500 Medium — The quick brown fox</p>
|
|
116
|
+
<p class="font-sans font-600 text-2xl">600 SemiBold — The quick brown fox</p>
|
|
117
|
+
<p class="font-sans font-700 text-2xl">700 Bold — The quick brown fox</p>
|
|
118
|
+
<p class="font-sans font-800 text-2xl">800 ExtraBold — The quick brown fox</p>
|
|
119
|
+
<p class="font-sans font-900 text-2xl">900 Black — The quick brown fox</p>
|
|
120
|
+
|
|
121
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Mono — Kode Mono</p>
|
|
122
|
+
<p class="font-mono font-400 text-2xl">400 Regular — The quick brown fox</p>
|
|
123
|
+
<p class="font-mono font-500 text-2xl">500 Medium — The quick brown fox</p>
|
|
124
|
+
<p class="font-mono font-600 text-2xl">600 SemiBold — The quick brown fox</p>
|
|
125
|
+
<p class="font-mono font-700 text-2xl">700 Bold — The quick brown fox</p>
|
|
126
|
+
|
|
127
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Size scale</p>
|
|
128
|
+
<p class="font-sans text-xs">text-xs — 0.75rem</p>
|
|
129
|
+
<p class="font-sans text-sm">text-sm — 0.875rem</p>
|
|
130
|
+
<p class="font-sans text-base">text-base — 1rem</p>
|
|
131
|
+
<p class="font-sans text-lg">text-lg — 1.125rem</p>
|
|
132
|
+
<p class="font-sans text-xl">text-xl — 1.25rem</p>
|
|
133
|
+
<p class="font-sans text-2xl">text-2xl — 1.5rem</p>
|
|
134
|
+
<p class="font-sans text-3xl">text-3xl — 1.875rem</p>
|
|
135
|
+
<p class="font-sans text-4xl">text-4xl — 2.25rem</p>
|
|
136
|
+
<p class="font-sans text-5xl">text-5xl — 3rem</p>
|
|
137
|
+
|
|
138
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Usage</p>
|
|
139
|
+
<table class="pp-table pp-table--cols-2" style="margin-bottom:1rem;">
|
|
140
|
+
<thead><tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr></thead>
|
|
141
|
+
<tbody>
|
|
142
|
+
<tr><td><code class="font-mono">.font-sans</code></td><td>Inter + system fallbacks</td></tr>
|
|
143
|
+
<tr><td><code class="font-mono">.font-mono</code></td><td>Kode Mono + system fallbacks</td></tr>
|
|
144
|
+
<tr><td><code class="font-mono">.font-100 → .font-900</code></td><td>Font weight</td></tr>
|
|
145
|
+
<tr><td><code class="font-mono">.text-xs → .text-5xl</code></td><td>Font size</td></tr>
|
|
146
|
+
<tr><td><code class="font-mono">.leading-*</code></td><td>Line height (none/tight/snug/normal/relaxed/loose)</td></tr>
|
|
147
|
+
<tr><td><code class="font-mono">.tracking-*</code></td><td>Letter spacing (tighter/tight/normal/wide/wider/widest)</td></tr>
|
|
148
|
+
<tr><td><code class="font-mono">.uppercase / .lowercase / .capitalize</code></td><td>Text transform</td></tr>
|
|
149
|
+
<tr><td><code class="font-mono">.truncate</code></td><td>Single-line overflow ellipsis</td></tr>
|
|
150
|
+
<tr><td><code class="font-mono">.wrap-balance</code></td><td>Balanced line wrapping</td></tr>
|
|
151
|
+
</tbody>
|
|
152
|
+
</table>
|
|
153
|
+
|
|
154
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Code</p>
|
|
155
|
+
<p class="font-sans font-400">Inline <code class="font-mono">const greet = (name) => `Hello, ${name}!`</code></p>
|
|
156
|
+
<pre class="font-mono"><code>// Code block
|
|
157
|
+
const greet = (name) => `Hello, ${name}!`;</code></pre>
|
|
158
|
+
</div>
|
|
159
|
+
</section>
|
|
160
|
+
|
|
161
|
+
<!-- Buttons -->
|
|
162
|
+
<section id="buttons" class="pp-section">
|
|
163
|
+
<div class="pp-section__inner">
|
|
164
|
+
<h2 class="font-sans font-700 tracking-tight">Buttons</h2>
|
|
165
|
+
<div class="row">
|
|
166
|
+
<button class="button font-sans font-400">Filled</button>
|
|
167
|
+
<button class="button-outline font-sans font-400">Outline</button>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</section>
|
|
171
|
+
|
|
172
|
+
<!-- Gradient text -->
|
|
173
|
+
<section id="gradient" class="pp-section pp-section--dark">
|
|
174
|
+
<div class="pp-section__inner">
|
|
175
|
+
<h2 class="font-sans font-700 tracking-tight" style="color:#fff;">Gradient Text</h2>
|
|
176
|
+
<h1 class="gradient-txt font-sans font-700 tracking-tight">PeppertinoCSS</h1>
|
|
177
|
+
<p class="gradient-txt font-sans font-400 text-xl leading-relaxed">The quick brown fox jumps over the lazy dog.</p>
|
|
178
|
+
</div>
|
|
179
|
+
</section>
|
|
180
|
+
|
|
181
|
+
<!-- Tables -->
|
|
182
|
+
<section id="tables" class="pp-section">
|
|
183
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:1100px;">
|
|
184
|
+
<h2 class="font-sans font-700 tracking-tight">Tables</h2>
|
|
185
|
+
|
|
186
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">3 columns</p>
|
|
187
|
+
<table class="pp-table pp-table--cols-3">
|
|
188
|
+
<tbody>
|
|
189
|
+
<tr><td>Finish</td><td>Sky Blue</td><td>Midnight</td></tr>
|
|
190
|
+
<tr><td>Price</td><td>₹119,900</td><td>₹139,900</td></tr>
|
|
191
|
+
<tr><td>Storage</td><td>256 GB</td><td>512 GB</td></tr>
|
|
192
|
+
</tbody>
|
|
193
|
+
</table>
|
|
194
|
+
|
|
195
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">4 columns</p>
|
|
196
|
+
<table class="pp-table pp-table--cols-4">
|
|
197
|
+
<tbody>
|
|
198
|
+
<tr><td>Finish</td><td>Sky Blue</td><td>Silver</td><td>Midnight</td></tr>
|
|
199
|
+
<tr><td>Price</td><td>₹119,900</td><td>₹139,900</td><td>₹159,900</td></tr>
|
|
200
|
+
<tr><td>Memory</td><td>16 GB</td><td>24 GB</td><td>32 GB</td></tr>
|
|
201
|
+
<tr><td>Storage</td><td>256 GB</td><td>512 GB</td><td>1 TB</td></tr>
|
|
202
|
+
</tbody>
|
|
203
|
+
</table>
|
|
204
|
+
|
|
205
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">2 columns</p>
|
|
206
|
+
<table class="pp-table pp-table--cols-2">
|
|
207
|
+
<tbody>
|
|
208
|
+
<tr><td>Chip</td><td>Apple M4</td></tr>
|
|
209
|
+
<tr><td>Battery</td><td>Up to 18 hours</td></tr>
|
|
210
|
+
<tr><td>Display</td><td>13.6-inch Liquid Retina</td></tr>
|
|
211
|
+
<tr><td>Weight</td><td>1.24 kg</td></tr>
|
|
212
|
+
</tbody>
|
|
213
|
+
</table>
|
|
214
|
+
</div>
|
|
215
|
+
</section>
|
|
216
|
+
|
|
217
|
+
</body>
|
|
218
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@auriel/peppertino",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "An Apple-inspired CSS framework with a spicy red accent. Clean geometry, restrained elegance, zero Cupertino lawsuits.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://codeberg.org/debaditya/Peppertino"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build:css": "sass src/scss/main.scss dist/main.css --style=expanded --source-map",
|
|
12
|
+
"build:css:min": "sass src/scss/main.scss dist/main.min.css --style=compressed --no-source-map",
|
|
13
|
+
"build:js": "node build.js",
|
|
14
|
+
"build": "bun run build:css && bun run build:js",
|
|
15
|
+
"watch:css": "sass --watch src/scss/main.scss:dist/main.css --style=expanded --source-map",
|
|
16
|
+
"watch:js": "node build.js --watch",
|
|
17
|
+
"serve": "bunx --bun serve . --port 3000",
|
|
18
|
+
"dev": "bun run build && concurrently \"bun run watch:css\" \"bun run watch:js\" \"bun run serve\""
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"concurrently": "^9.1.2",
|
|
22
|
+
"esbuild": "^0.25.4",
|
|
23
|
+
"sass": "^1.89.0",
|
|
24
|
+
"serve": "^14.2.4"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/js/header.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
(function () {
|
|
2
|
+
function initHeader(header) {
|
|
3
|
+
const toggle = header.querySelector('.pp-header__toggle');
|
|
4
|
+
const nav = header.querySelector('.pp-header__nav');
|
|
5
|
+
|
|
6
|
+
// Mobile hamburger
|
|
7
|
+
if (toggle && nav) {
|
|
8
|
+
toggle.addEventListener('click', () => {
|
|
9
|
+
const isOpen = nav.classList.toggle('is-open');
|
|
10
|
+
toggle.setAttribute('aria-expanded', String(isOpen));
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Close drawer on outside click
|
|
14
|
+
document.addEventListener('click', (e) => {
|
|
15
|
+
if (!header.contains(e.target)) {
|
|
16
|
+
nav.classList.remove('is-open');
|
|
17
|
+
toggle.setAttribute('aria-expanded', 'false');
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Mobile: tap to expand dropdown items
|
|
23
|
+
header.querySelectorAll('.pp-header__nav-item').forEach((item) => {
|
|
24
|
+
const dropdown = item.querySelector('.pp-header__dropdown');
|
|
25
|
+
if (!dropdown) return;
|
|
26
|
+
|
|
27
|
+
item.addEventListener('click', (e) => {
|
|
28
|
+
if (window.innerWidth >= 768) return;
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
item.classList.toggle('is-open');
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Close mobile dropdowns on resize back to desktop
|
|
35
|
+
window.addEventListener('resize', () => {
|
|
36
|
+
if (window.innerWidth >= 768) {
|
|
37
|
+
nav?.classList.remove('is-open');
|
|
38
|
+
toggle?.setAttribute('aria-expanded', 'false');
|
|
39
|
+
header.querySelectorAll('.pp-header__nav-item').forEach((i) => i.classList.remove('is-open'));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
document.querySelectorAll('.pp-header').forEach(initHeader);
|
|
45
|
+
})();
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// PeppertinoCSS — Base
|
|
2
|
+
// Design tokens and shared foundational styles
|
|
3
|
+
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Kode+Mono:wght@400;500;600;700&display=swap');
|
|
7
|
+
|
|
8
|
+
// ─── Color palette ───────────────────────────────────────────────────────────
|
|
9
|
+
$color-primary: #e90111 !default;
|
|
10
|
+
$color-primary-light: #ff4d5a !default;
|
|
11
|
+
$color-primary-dark: #a8000c !default;
|
|
12
|
+
|
|
13
|
+
$color-accent: #f77f00 !default;
|
|
14
|
+
|
|
15
|
+
$gradient-start: #ffcf67!default;
|
|
16
|
+
$gradient-end: #ea5753 !default;
|
|
17
|
+
|
|
18
|
+
$color-neutral-50: #fafafa !default;
|
|
19
|
+
$color-neutral-100: #f4f4f5 !default;
|
|
20
|
+
$color-neutral-200: #e4e4e7 !default;
|
|
21
|
+
$color-neutral-300: #d4d4d8 !default;
|
|
22
|
+
$color-neutral-400: #a1a1aa !default;
|
|
23
|
+
$color-neutral-500: #71717a !default;
|
|
24
|
+
$color-neutral-600: #52525b !default;
|
|
25
|
+
$color-neutral-700: #3f3f46 !default;
|
|
26
|
+
$color-neutral-800: #27272a !default;
|
|
27
|
+
$color-neutral-900: #18181b !default;
|
|
28
|
+
|
|
29
|
+
$color-surface: $color-neutral-50 !default;
|
|
30
|
+
$color-on-surface: $color-neutral-900 !default;
|
|
31
|
+
$color-border: $color-neutral-200 !default;
|
|
32
|
+
|
|
33
|
+
$color-success: #22c55e !default;
|
|
34
|
+
$color-warning: #f59e0b !default;
|
|
35
|
+
$color-error: #ef4444 !default;
|
|
36
|
+
$color-info: #3b82f6 !default;
|
|
37
|
+
|
|
38
|
+
// ─── Typography ───────────────────────────────────────────────────────────────
|
|
39
|
+
$font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
40
|
+
Roboto, Helvetica, Arial, sans-serif !default;
|
|
41
|
+
$font-mono: 'Kode Mono', ui-monospace, 'Cascadia Code', 'Courier New',
|
|
42
|
+
monospace !default;
|
|
43
|
+
|
|
44
|
+
$font-size-base: 1rem !default; // 16px
|
|
45
|
+
$line-height-base: 1.6 !default;
|
|
46
|
+
|
|
47
|
+
$font-sizes: (
|
|
48
|
+
'xs': 0.75rem,
|
|
49
|
+
'sm': 0.875rem,
|
|
50
|
+
'base': 1rem,
|
|
51
|
+
'lg': 1.125rem,
|
|
52
|
+
'xl': 1.25rem,
|
|
53
|
+
'2xl': 1.5rem,
|
|
54
|
+
'3xl': 1.875rem,
|
|
55
|
+
'4xl': 2.25rem,
|
|
56
|
+
'5xl': 3rem,
|
|
57
|
+
) !default;
|
|
58
|
+
|
|
59
|
+
$font-weights: (
|
|
60
|
+
'light': 300,
|
|
61
|
+
'regular': 400,
|
|
62
|
+
'medium': 500,
|
|
63
|
+
'semibold': 600,
|
|
64
|
+
'bold': 700,
|
|
65
|
+
'black': 900,
|
|
66
|
+
) !default;
|
|
67
|
+
|
|
68
|
+
// ─── Spacing scale (multiples of 0.25rem) ────────────────────────────────────
|
|
69
|
+
$spacing: (
|
|
70
|
+
'0': 0,
|
|
71
|
+
'1': 0.25rem,
|
|
72
|
+
'2': 0.5rem,
|
|
73
|
+
'3': 0.75rem,
|
|
74
|
+
'4': 1rem,
|
|
75
|
+
'5': 1.25rem,
|
|
76
|
+
'6': 1.5rem,
|
|
77
|
+
'8': 2rem,
|
|
78
|
+
'10': 2.5rem,
|
|
79
|
+
'12': 3rem,
|
|
80
|
+
'16': 4rem,
|
|
81
|
+
'20': 5rem,
|
|
82
|
+
'24': 6rem,
|
|
83
|
+
'32': 8rem,
|
|
84
|
+
) !default;
|
|
85
|
+
|
|
86
|
+
// ─── Border radius ────────────────────────────────────────────────────────────
|
|
87
|
+
$radius: (
|
|
88
|
+
'none': 0,
|
|
89
|
+
'sm': 0.125rem,
|
|
90
|
+
'base': 0.25rem,
|
|
91
|
+
'md': 0.375rem,
|
|
92
|
+
'lg': 0.5rem,
|
|
93
|
+
'xl': 0.75rem,
|
|
94
|
+
'2xl': 1rem,
|
|
95
|
+
'full': 9999px,
|
|
96
|
+
) !default;
|
|
97
|
+
|
|
98
|
+
// ─── Shadows ─────────────────────────────────────────────────────────────────
|
|
99
|
+
$shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05) !default;
|
|
100
|
+
$shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !default;
|
|
101
|
+
$shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !default;
|
|
102
|
+
$shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !default;
|
|
103
|
+
$shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !default;
|
|
104
|
+
|
|
105
|
+
// ─── Breakpoints ─────────────────────────────────────────────────────────────
|
|
106
|
+
$breakpoints: (
|
|
107
|
+
'sm': 640px,
|
|
108
|
+
'md': 768px,
|
|
109
|
+
'lg': 1024px,
|
|
110
|
+
'xl': 1280px,
|
|
111
|
+
'2xl': 1536px,
|
|
112
|
+
) !default;
|
|
113
|
+
|
|
114
|
+
// ─── Z-index scale ────────────────────────────────────────────────────────────
|
|
115
|
+
$z: (
|
|
116
|
+
'below': -1,
|
|
117
|
+
'base': 0,
|
|
118
|
+
'raised': 10,
|
|
119
|
+
'overlay': 100,
|
|
120
|
+
'modal': 200,
|
|
121
|
+
'toast': 300,
|
|
122
|
+
'tooltip': 400,
|
|
123
|
+
) !default;
|
|
124
|
+
|
|
125
|
+
// ─── Transitions ─────────────────────────────────────────────────────────────
|
|
126
|
+
$transition-fast: 100ms ease !default;
|
|
127
|
+
$transition-base: 200ms ease !default;
|
|
128
|
+
$transition-slow: 400ms ease !default;
|
|
129
|
+
|
|
130
|
+
// ─── Helper functions ─────────────────────────────────────────────────────────
|
|
131
|
+
@function spacing($key) {
|
|
132
|
+
@return map.get($spacing, '#{$key}');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@function font-size($key) {
|
|
136
|
+
@return map.get($font-sizes, $key);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@function radius($key) {
|
|
140
|
+
@return map.get($radius, $key);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@function z($key) {
|
|
144
|
+
@return map.get($z, $key);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ─── Responsive mixin ─────────────────────────────────────────────────────────
|
|
148
|
+
@mixin respond-to($bp) {
|
|
149
|
+
$value: map.get($breakpoints, $bp);
|
|
150
|
+
@if $value {
|
|
151
|
+
@media (min-width: $value) {
|
|
152
|
+
@content;
|
|
153
|
+
}
|
|
154
|
+
} @else {
|
|
155
|
+
@warn "Unknown breakpoint: `#{$bp}`.";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ─── Base element styles ─────────────────────────────────────────────────────
|
|
160
|
+
body {
|
|
161
|
+
font-family: $font-sans;
|
|
162
|
+
font-size: $font-size-base;
|
|
163
|
+
line-height: $line-height-base;
|
|
164
|
+
color: $color-on-surface;
|
|
165
|
+
background-color: $color-surface;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
h1, h2, h3, h4, h5, h6 {
|
|
169
|
+
font-weight: map.get($font-weights, 'bold');
|
|
170
|
+
line-height: 1.25;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
h1 { font-size: font-size('5xl'); }
|
|
174
|
+
h2 { font-size: font-size('4xl'); }
|
|
175
|
+
h3 { font-size: font-size('3xl'); }
|
|
176
|
+
h4 { font-size: font-size('2xl'); }
|
|
177
|
+
h5 { font-size: font-size('xl'); }
|
|
178
|
+
h6 { font-size: font-size('lg'); }
|
|
179
|
+
|
|
180
|
+
code,
|
|
181
|
+
pre {
|
|
182
|
+
font-family: $font-mono;
|
|
183
|
+
font-size: font-size('sm');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
pre {
|
|
187
|
+
overflow-x: auto;
|
|
188
|
+
padding: spacing(4);
|
|
189
|
+
background-color: $color-neutral-100;
|
|
190
|
+
border-radius: radius('md');
|
|
191
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// PeppertinoCSS — Button
|
|
2
|
+
|
|
3
|
+
@use 'base' as *;
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
text-align: center;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
font-size: 17px;
|
|
11
|
+
line-height: 1.17648;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
letter-spacing: -0.022em;
|
|
14
|
+
font-family: $font-sans;
|
|
15
|
+
border-style: solid;
|
|
16
|
+
border-width: 1px;
|
|
17
|
+
min-width: 30px;
|
|
18
|
+
padding: 11px 21px;
|
|
19
|
+
border-radius: 980px;
|
|
20
|
+
background: $color-primary;
|
|
21
|
+
color: #fff;
|
|
22
|
+
border-color: transparent;
|
|
23
|
+
--sk-button-margin-horizontal: 14px;
|
|
24
|
+
--sk-button-margin-vertical: 14px;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background: $color-primary-light;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:active {
|
|
31
|
+
background: $color-primary-dark;
|
|
32
|
+
opacity: 0.85;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.button-outline {
|
|
37
|
+
@extend .button;
|
|
38
|
+
|
|
39
|
+
background: transparent;
|
|
40
|
+
color: $color-primary;
|
|
41
|
+
border-color: $color-primary;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
background: $color-primary;
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:active {
|
|
49
|
+
background: $color-primary-dark;
|
|
50
|
+
border-color: $color-primary-dark;
|
|
51
|
+
color: #fff;
|
|
52
|
+
opacity: 0.85;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// PeppertinoCSS — Gradients
|
|
2
|
+
|
|
3
|
+
@use 'base' as *;
|
|
4
|
+
|
|
5
|
+
.gradient-txt {
|
|
6
|
+
background: linear-gradient(135deg, $gradient-start, $gradient-end);
|
|
7
|
+
-webkit-background-clip: text;
|
|
8
|
+
background-clip: text;
|
|
9
|
+
-webkit-text-fill-color: transparent;
|
|
10
|
+
color: rgba(0, 0, 0, 0);
|
|
11
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// PeppertinoCSS — Header (in-page content navigation)
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
.pp-header {
|
|
7
|
+
position: sticky;
|
|
8
|
+
top: 0;
|
|
9
|
+
z-index: z('overlay');
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
padding: 0 spacing(8);
|
|
14
|
+
height: 56px;
|
|
15
|
+
|
|
16
|
+
// Glassmorphism
|
|
17
|
+
background: rgb(255 255 255 / 0.65);
|
|
18
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
19
|
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
20
|
+
border-bottom: 1px solid rgb(255 255 255 / 0.3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// ─── Brand / title (right side) ──────────────────────────────────────────────
|
|
24
|
+
.pp-header__brand {
|
|
25
|
+
font-family: $font-sans;
|
|
26
|
+
font-size: font-size('lg');
|
|
27
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
28
|
+
letter-spacing: -0.02em;
|
|
29
|
+
color: $color-on-surface;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
color: $color-primary;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ─── Nav (left side) ─────────────────────────────────────────────────────────
|
|
39
|
+
.pp-header__nav {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: spacing(1);
|
|
43
|
+
list-style: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pp-header__nav-item {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pp-header__nav-link {
|
|
51
|
+
display: block;
|
|
52
|
+
padding: spacing(2) spacing(3);
|
|
53
|
+
font-size: font-size('sm');
|
|
54
|
+
font-weight: map.get($font-weights, 'medium');
|
|
55
|
+
color: $color-neutral-600;
|
|
56
|
+
border-radius: 6px;
|
|
57
|
+
transition: color $transition-fast, background $transition-fast;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
color: $color-on-surface;
|
|
62
|
+
background: rgb(0 0 0 / 0.05);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&[aria-current='page'],
|
|
66
|
+
&.is-active {
|
|
67
|
+
color: $color-primary;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ─── Dropdown ────────────────────────────────────────────────────────────────
|
|
72
|
+
.pp-header__dropdown {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: calc(100% + spacing(2));
|
|
75
|
+
right: 0;
|
|
76
|
+
min-width: 180px;
|
|
77
|
+
background: rgb(255 255 255 / 0.85);
|
|
78
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
79
|
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
80
|
+
border: 1px solid $color-border;
|
|
81
|
+
border-radius: 10px;
|
|
82
|
+
padding: spacing(1);
|
|
83
|
+
list-style: none;
|
|
84
|
+
box-shadow: $shadow-lg;
|
|
85
|
+
|
|
86
|
+
opacity: 0;
|
|
87
|
+
visibility: hidden;
|
|
88
|
+
transform: translateY(-6px);
|
|
89
|
+
transition:
|
|
90
|
+
opacity $transition-base,
|
|
91
|
+
transform $transition-base,
|
|
92
|
+
visibility $transition-base;
|
|
93
|
+
|
|
94
|
+
.pp-header__nav-item:hover > &,
|
|
95
|
+
.pp-header__nav-item:focus-within > & {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
visibility: visible;
|
|
98
|
+
transform: translateY(0);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pp-header__dropdown-link {
|
|
103
|
+
display: block;
|
|
104
|
+
padding: spacing(2) spacing(3);
|
|
105
|
+
font-size: font-size('sm');
|
|
106
|
+
color: $color-neutral-600;
|
|
107
|
+
border-radius: 6px;
|
|
108
|
+
transition: color $transition-fast, background $transition-fast;
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
color: $color-on-surface;
|
|
112
|
+
background: rgb(0 0 0 / 0.05);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ─── Mobile hamburger toggle ─────────────────────────────────────────────────
|
|
117
|
+
.pp-header__toggle {
|
|
118
|
+
display: none;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
gap: 5px;
|
|
122
|
+
width: 32px;
|
|
123
|
+
height: 32px;
|
|
124
|
+
padding: 4px;
|
|
125
|
+
border-radius: 6px;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
background: none;
|
|
128
|
+
border: none;
|
|
129
|
+
transition: background $transition-fast;
|
|
130
|
+
|
|
131
|
+
&:hover {
|
|
132
|
+
background: rgb(0 0 0 / 0.05);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
span {
|
|
136
|
+
display: block;
|
|
137
|
+
height: 2px;
|
|
138
|
+
width: 100%;
|
|
139
|
+
background: $color-on-surface;
|
|
140
|
+
border-radius: 2px;
|
|
141
|
+
transition: transform $transition-base, opacity $transition-base;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Animate to X when open
|
|
145
|
+
&[aria-expanded='true'] {
|
|
146
|
+
span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
|
|
147
|
+
span:nth-child(2) { opacity: 0; }
|
|
148
|
+
span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// ─── Mobile drawer ────────────────────────────────────────────────────────────
|
|
153
|
+
@include respond-to('md') {
|
|
154
|
+
.pp-header__toggle { display: none !important; }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (max-width: 767px) {
|
|
158
|
+
.pp-header {
|
|
159
|
+
padding: 0 spacing(4);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.pp-header__toggle {
|
|
163
|
+
display: flex;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.pp-header__nav {
|
|
167
|
+
position: fixed;
|
|
168
|
+
inset: 56px 0 auto 0;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
align-items: stretch;
|
|
171
|
+
gap: 0;
|
|
172
|
+
padding: spacing(2);
|
|
173
|
+
background: rgb(255 255 255 / 0.9);
|
|
174
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
175
|
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
176
|
+
border-bottom: 1px solid $color-border;
|
|
177
|
+
box-shadow: $shadow-md;
|
|
178
|
+
|
|
179
|
+
opacity: 0;
|
|
180
|
+
visibility: hidden;
|
|
181
|
+
transform: translateY(-8px);
|
|
182
|
+
transition:
|
|
183
|
+
opacity $transition-base,
|
|
184
|
+
transform $transition-base,
|
|
185
|
+
visibility $transition-base;
|
|
186
|
+
|
|
187
|
+
&.is-open {
|
|
188
|
+
opacity: 1;
|
|
189
|
+
visibility: visible;
|
|
190
|
+
transform: translateY(0);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.pp-header__nav-link {
|
|
195
|
+
font-size: font-size('base');
|
|
196
|
+
padding: spacing(3) spacing(4);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Inline dropdown on mobile (no absolute positioning)
|
|
200
|
+
.pp-header__dropdown {
|
|
201
|
+
position: static;
|
|
202
|
+
opacity: 1;
|
|
203
|
+
visibility: visible;
|
|
204
|
+
transform: none;
|
|
205
|
+
box-shadow: none;
|
|
206
|
+
border: none;
|
|
207
|
+
border-radius: 0;
|
|
208
|
+
background: transparent;
|
|
209
|
+
backdrop-filter: none;
|
|
210
|
+
padding-left: spacing(4);
|
|
211
|
+
display: none;
|
|
212
|
+
|
|
213
|
+
.pp-header__nav-item.is-open > & {
|
|
214
|
+
display: block;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// PeppertinoCSS — Reset
|
|
2
|
+
// Opinionated reset based on modern browser defaults
|
|
3
|
+
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
-webkit-text-size-adjust: 100%;
|
|
14
|
+
tab-size: 4;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
min-height: 100vh;
|
|
20
|
+
line-height: 1.5;
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
-moz-osx-font-smoothing: grayscale;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
img,
|
|
26
|
+
picture,
|
|
27
|
+
video,
|
|
28
|
+
canvas,
|
|
29
|
+
svg {
|
|
30
|
+
display: block;
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input,
|
|
35
|
+
button,
|
|
36
|
+
textarea,
|
|
37
|
+
select {
|
|
38
|
+
font: inherit;
|
|
39
|
+
color: inherit;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
button {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
background: none;
|
|
45
|
+
border: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
p,
|
|
49
|
+
h1,
|
|
50
|
+
h2,
|
|
51
|
+
h3,
|
|
52
|
+
h4,
|
|
53
|
+
h5,
|
|
54
|
+
h6 {
|
|
55
|
+
overflow-wrap: break-word;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
ol,
|
|
59
|
+
ul {
|
|
60
|
+
list-style: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
a {
|
|
64
|
+
color: inherit;
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
table {
|
|
69
|
+
border-collapse: collapse;
|
|
70
|
+
border-spacing: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
textarea {
|
|
74
|
+
resize: vertical;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
fieldset {
|
|
78
|
+
border: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:focus-visible {
|
|
82
|
+
outline: 2px solid currentColor;
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// PeppertinoCSS — Section (full-viewport content blocks)
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
// ─── Scrollbar ────────────────────────────────────────────────────────────────
|
|
7
|
+
:root {
|
|
8
|
+
scrollbar-width: auto;
|
|
9
|
+
scrollbar-color: $gradient-end transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html{
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar {
|
|
15
|
+
width: 16px;
|
|
16
|
+
height: 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::-webkit-scrollbar-track {
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar-thumb {
|
|
24
|
+
background: linear-gradient(180deg, $gradient-start, $gradient-end);
|
|
25
|
+
border-radius: 0 !important;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background: linear-gradient(180deg, $gradient-end, $gradient-start);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// ─── Section ─────────────────────────────────────────────────────────────────
|
|
35
|
+
.pp-section {
|
|
36
|
+
width: 100%;
|
|
37
|
+
min-height: 100dvh;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
padding: spacing(16) spacing(8);
|
|
45
|
+
|
|
46
|
+
// Account for sticky header
|
|
47
|
+
scroll-margin-top: 56px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ─── Inner content wrapper (optional, constrains width) ──────────────────────
|
|
51
|
+
.pp-section__inner {
|
|
52
|
+
width: 100%;
|
|
53
|
+
max-width: 960px;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: spacing(6);
|
|
58
|
+
text-align: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
62
|
+
.pp-section--primary {
|
|
63
|
+
background: $color-primary;
|
|
64
|
+
color: #fff;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.pp-section--dark {
|
|
68
|
+
background: $color-neutral-900;
|
|
69
|
+
color: $color-neutral-50;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pp-section--muted {
|
|
73
|
+
background: $color-neutral-100;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pp-section--gradient {
|
|
77
|
+
background: linear-gradient(135deg, $gradient-start, $gradient-end);
|
|
78
|
+
color: #fff;
|
|
79
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// PeppertinoCSS — Table
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
.pp-table {
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
font-size: font-size('base');
|
|
10
|
+
font-family: $font-sans;
|
|
11
|
+
background: #fff;
|
|
12
|
+
color: #000;
|
|
13
|
+
|
|
14
|
+
th,
|
|
15
|
+
td {
|
|
16
|
+
padding: spacing(5) spacing(6);
|
|
17
|
+
text-align: left;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Row label column (first cell in tbody)
|
|
22
|
+
td:first-child,
|
|
23
|
+
th:first-child {
|
|
24
|
+
font-weight: map.get($font-weights, 'bold');
|
|
25
|
+
font-size: font-size('2xl');
|
|
26
|
+
color: #000;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
padding-left: 0;
|
|
29
|
+
width: 1%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Header row — no background, just a bottom divider
|
|
33
|
+
thead tr {
|
|
34
|
+
border-bottom: 1px solid $color-neutral-200;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
thead th {
|
|
38
|
+
font-weight: map.get($font-weights, 'regular');
|
|
39
|
+
font-size: font-size('base');
|
|
40
|
+
color: $color-neutral-600;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Body rows separated by a light divider
|
|
44
|
+
tbody tr {
|
|
45
|
+
border-bottom: 1px solid $color-neutral-200;
|
|
46
|
+
|
|
47
|
+
&:last-child {
|
|
48
|
+
border-bottom: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// No hover tint — keep it clean
|
|
53
|
+
tbody tr:hover {
|
|
54
|
+
background: transparent;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
// Compact
|
|
61
|
+
.pp-table--compact {
|
|
62
|
+
th,
|
|
63
|
+
td {
|
|
64
|
+
padding: spacing(3) spacing(4);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Flush — no outer padding on edges
|
|
69
|
+
.pp-table--flush {
|
|
70
|
+
th,
|
|
71
|
+
td {
|
|
72
|
+
&:last-child { padding-right: 0; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
td:first-child,
|
|
76
|
+
th:first-child {
|
|
77
|
+
padding-left: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ─── Column count helpers (1–4 cols) ─────────────────────────────────────────
|
|
82
|
+
@for $c from 1 through 4 {
|
|
83
|
+
.pp-table--cols-#{$c} {
|
|
84
|
+
th,
|
|
85
|
+
td {
|
|
86
|
+
width: calc(100% / #{$c});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// PeppertinoCSS — Typography utilities
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
// ─── Font family ─────────────────────────────────────────────────────────────
|
|
7
|
+
.font-sans { font-family: $font-sans; }
|
|
8
|
+
.font-mono { font-family: $font-mono; }
|
|
9
|
+
|
|
10
|
+
// ─── Font weights 100–900 ────────────────────────────────────────────────────
|
|
11
|
+
@each $w in 100, 200, 300, 400, 500, 600, 700, 800, 900 {
|
|
12
|
+
.font-#{$w} { font-weight: $w; }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ─── Font sizes ──────────────────────────────────────────────────────────────
|
|
16
|
+
@each $name, $size in $font-sizes {
|
|
17
|
+
.text-#{$name} { font-size: $size; }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ─── Line height ─────────────────────────────────────────────────────────────
|
|
21
|
+
.leading-none { line-height: 1; }
|
|
22
|
+
.leading-tight { line-height: 1.25; }
|
|
23
|
+
.leading-snug { line-height: 1.375; }
|
|
24
|
+
.leading-normal { line-height: 1.5; }
|
|
25
|
+
.leading-relaxed { line-height: 1.625; }
|
|
26
|
+
.leading-loose { line-height: 2; }
|
|
27
|
+
|
|
28
|
+
// ─── Letter spacing ──────────────────────────────────────────────────────────
|
|
29
|
+
.tracking-tighter { letter-spacing: -0.05em; }
|
|
30
|
+
.tracking-tight { letter-spacing: -0.025em; }
|
|
31
|
+
.tracking-normal { letter-spacing: 0; }
|
|
32
|
+
.tracking-wide { letter-spacing: 0.025em; }
|
|
33
|
+
.tracking-wider { letter-spacing: 0.05em; }
|
|
34
|
+
.tracking-widest { letter-spacing: 0.1em; }
|
|
35
|
+
|
|
36
|
+
// ─── Alignment ───────────────────────────────────────────────────────────────
|
|
37
|
+
.text-left { text-align: left; }
|
|
38
|
+
.text-center { text-align: center; }
|
|
39
|
+
.text-right { text-align: right; }
|
|
40
|
+
|
|
41
|
+
// ─── Transform ───────────────────────────────────────────────────────────────
|
|
42
|
+
.uppercase { text-transform: uppercase; }
|
|
43
|
+
.lowercase { text-transform: lowercase; }
|
|
44
|
+
.capitalize { text-transform: capitalize; }
|
|
45
|
+
|
|
46
|
+
// ─── Decoration ──────────────────────────────────────────────────────────────
|
|
47
|
+
.underline { text-decoration: underline; }
|
|
48
|
+
.no-underline { text-decoration: none; }
|
|
49
|
+
.line-through { text-decoration: line-through; }
|
|
50
|
+
|
|
51
|
+
// ─── Overflow ────────────────────────────────────────────────────────────────
|
|
52
|
+
.truncate {
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.wrap-balance { text-wrap: balance; }
|