tiny, simple, classless CSS framework inspired by new.css devcss.devins.page
framework lightweight css classless stylesheet

feat: better comments, day theme

+66 -43
+1
addon/header-sidebar.css
··· 1 1 /* addon for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: turns the header into a sidebar if the viewport is wide enough */ 2 3 /* warn: if using with the header-sticky addon, be sure to include this after it */ 3 4 4 5 @media (min-width: calc((48rem + 4rem) + ((16rem)*2))) {
+1
addon/header-sticky.css
··· 1 1 /* addon for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: makes the header sticky, always at the top of the screen */ 2 3 /* warn: if using with the header-sidebar addon, be sure to include this before it */ 3 4 /* warn: i do not recommend using this if your header is large, may affect usability */ 4 5
+41 -40
dev.css
··· 1 1 /* dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: tiny, simple, classless CSS framework in the style of Vercel's Geist design system */ 2 3 3 - /* Table of Contents 4 - 1. Configuration 5 - 2. Dark Mode Handling 6 - 3. CSS Reset 7 - 4. Margins for Most Elements 8 - 5. Font Family 9 - 6. Body and Selection Styling 10 - 7. Typography 11 - 8. Blockquotes 12 - 9. Header 13 - 10. Footer 14 - 11. Buttons and Inputs 15 - 12. Code and Keyboards 16 - 13. Details 17 - 14. Description Lists 18 - 15. Horizontal Rules 19 - 16. Fieldsets 20 - 17. Tables 21 - 18. Lists 4 + /* table of contents 5 + 1. configuration 6 + 2. dark mode handling 7 + 3. css reset 8 + 4. margins for most elements 9 + 5. font family 10 + 6. body and selection styling 11 + 7. typography 12 + 8. blockquotes 13 + 9. header 14 + 10. footer 15 + 11. buttons and inputs 16 + 12. code and keyboards 17 + 13. details 18 + 14. description lists 19 + 15. horizontal rules 20 + 16. fieldsets 21 + 17. tables 22 + 18. lists 22 23 */ 23 24 24 - /* 1. Configuration */ 25 + /* 1. configuration */ 25 26 :root { 26 - /* Font families */ 27 + /* font families */ 27 28 --dc-font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, 28 29 "Segoe UI", sans-serif; 29 30 --dc-font-mono: "Geist Mono", monospace; 30 31 31 - /* Light colors */ 32 + /* light colors */ 32 33 --dc-tx-1: #000000; 33 34 --dc-tx-2: #1a1a1a; 34 35 --dc-bg-1: #fafafa; ··· 41 42 --dc-ac-1: #8e4ec6; 42 43 --dc-ac-tx: #ededed; 43 44 44 - /* Dark colors */ 45 + /* dark colors */ 45 46 --dc-d-tx-1: #ededed; 46 47 --dc-d-tx-2: #a1a1a1; 47 48 --dc-d-bg-1: #000; ··· 55 56 --dc-d-ac-tx: #ededed; 56 57 } 57 58 58 - /* 2. Dark Mode Handling */ 59 + /* 2. dark mode handling */ 59 60 @media (prefers-color-scheme: dark) { 60 61 :root { 61 62 --dc-tx-1: var(--dc-d-tx-1); ··· 72 73 } 73 74 } 74 75 75 - /* 3. CSS Reset - cleaned up https://www.joshwcomeau.com/css/custom-css-reset */ 76 + /* 3. css reset - cleaned up https://www.joshwcomeau.com/css/custom-css-reset */ 76 77 *, 77 78 *::before, 78 79 *::after { ··· 106 107 isolation: isolate; 107 108 } 108 109 109 - /* 4. Margins for Most Elements */ 110 + /* 4. margins for most elements */ 110 111 address, 111 112 area, 112 113 article, ··· 140 141 margin-bottom: 1rem; 141 142 } 142 143 143 - /* 5. Font Family */ 144 + /* 5. font family */ 144 145 html { 145 146 font-family: var(--dc-font-sans); 146 147 } ··· 152 153 font-family: var(--dc-font-mono); 153 154 } 154 155 155 - /* 6. Body and Selection Styling */ 156 + /* 6. body and selection styling */ 156 157 body { 157 158 margin: 0 auto; 158 159 max-width: 48rem; ··· 166 167 color: var(--dc-ac-tx); 167 168 } 168 169 169 - /* 7. Typography */ 170 + /* 7. typography */ 170 171 h1, 171 172 h2, 172 173 h3, ··· 208 209 border-radius: 0.25rem; 209 210 } 210 211 211 - /* 8. Blockquotes */ 212 + /* 8. blockquotes */ 212 213 blockquote { 213 214 padding: 1.25rem; 214 215 background: var(--dc-bg-2); ··· 222 223 margin-bottom: 0; 223 224 } 224 225 225 - /* 9. Header */ 226 + /* 9. header */ 226 227 header { 227 228 background: var(--dc-bg-2); 228 229 border-bottom: 1px solid var(--dc-bg-3); ··· 288 289 content: "• "; 289 290 } 290 291 291 - /* 10. Footer */ 292 + /* 10. footer */ 292 293 footer { 293 294 border-top: 1px solid var(--dc-bg-3); 294 295 padding: 0.5rem calc(50vw - 50%); ··· 308 309 border-bottom: 0; 309 310 } 310 311 311 - /* 11. Buttons and Inputs */ 312 + /* 11. buttons and inputs */ 312 313 a button, 313 314 button, 314 315 input[type="submit"], ··· 366 367 max-width: 100%; 367 368 } 368 369 369 - /* 12. Code and Keyboards */ 370 + /* 12. code and keyboards */ 370 371 code, 371 372 samp, 372 373 kbd, ··· 388 389 overflow: auto; 389 390 } 390 391 391 - /* 13. Details */ 392 + /* 13. details */ 392 393 details { 393 394 padding: 0.5rem 1rem; 394 395 background: var(--dc-bg-2); ··· 415 416 padding-bottom: 0; 416 417 } 417 418 418 - /* 14. Description Lists */ 419 + /* 14. description lists */ 419 420 dt { 420 421 font-weight: bold; 421 422 } ··· 424 425 content: "→ "; 425 426 } 426 427 427 - /* 15. Horizontal Rules */ 428 + /* 15. horizontal rules */ 428 429 hr { 429 430 border: 0; 430 431 border-bottom: 1px solid var(--dc-bg-3); 431 432 margin: 1rem auto; 432 433 } 433 434 434 - /* 16. Fieldsets */ 435 + /* 16. fieldsets */ 435 436 fieldset { 436 437 margin-top: 1rem; 437 438 padding: 2rem; ··· 443 444 padding: auto 0.5rem; 444 445 } 445 446 446 - /* 17. Tables */ 447 + /* 17. tables */ 447 448 table { 448 449 border-collapse: collapse; 449 450 width: 100%; ··· 469 470 margin-bottom: 0.5rem; 470 471 } 471 472 472 - /* 18. Lists */ 473 + /* 18. lists */ 473 474 ol, 474 475 ul { 475 476 padding-left: 2rem;
+2 -1
theme/boilerplate.css
··· 1 - /* This theme is a template that you can modify */ 1 + /* theme for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: a template that you can modify */ 2 3 3 4 :root { 4 5 /* Fonts */
+17
theme/day.css
··· 1 + /* theme for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: makes it always light, regardless of device setting */ 3 + 4 + :root { 5 + /* Colors */ 6 + --dc-tx-1: #000000; 7 + --dc-tx-2: #1a1a1a; 8 + --dc-bg-1: #fafafa; 9 + --dc-bg-2: #fff; 10 + --dc-bg-3: #ebebeb; 11 + --dc-lk-1: #0068d6; 12 + --dc-lkb-1: #0072f5; 13 + --dc-lkb-2: #0062d1; 14 + --dc-lkb-tx: #ededed; 15 + --dc-ac-1: #8e4ec6; 16 + --dc-ac-tx: #ededed; 17 + }
+2 -1
theme/night.css
··· 1 - /* This theme will make it always dark, regardless of device setting */ 1 + /* theme for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: makes it always dark, regardless of device setting */ 2 3 3 4 :root { 4 5 /* Colors */
+2 -1
theme/terminal.css
··· 1 - /* This theme has a similar look to a computer terminal */ 1 + /* theme for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */ 2 + /* about: has a similar look to a computer terminal */ 2 3 3 4 @import url("https://cdn.jsdelivr.net/npm/@intergrav/fonts@1/serve/geist-mono.min.css"); 4 5