Created
November 8, 2025 14:56
-
-
Save florentdestremau/d6800a341348086c3c1abd30cb5770cb to your computer and use it in GitHub Desktop.
Starter CSS kit for small website experimentations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; | |
| line-height: 1.5; | |
| padding: 1rem; | |
| max-width: 900px; | |
| margin: 0 auto; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| h1, h2, h3, h4, h5, h6 { | |
| margin: 0 0 .5em; | |
| font-weight: bold; | |
| line-height: 1.2; | |
| } | |
| h1 { | |
| font-size: 1.5rem; | |
| } | |
| h2 { | |
| font-size: 1.25rem; | |
| } | |
| h3 { | |
| font-size: 1.125rem; | |
| } | |
| p { | |
| margin: 0 0 1em; | |
| } | |
| ul, ol { | |
| margin: 0 0 1em; | |
| padding-left: 1.25em; | |
| } | |
| nav { | |
| display: flex; | |
| gap: 1rem; | |
| align-items: center; | |
| margin: 1rem 0; | |
| } | |
| a { | |
| color: #0b84ff; | |
| text-decoration: underline; | |
| } | |
| label { | |
| display: block; | |
| margin-bottom: .25em; | |
| font-size: .9rem; | |
| color: #555; | |
| } | |
| input, textarea, select, button { | |
| font: inherit; | |
| color: inherit; | |
| padding: .5rem .6rem; | |
| border: 1px solid #ccc; | |
| border-radius: 6px; | |
| background: #fff; | |
| } | |
| textarea { | |
| resize: vertical; | |
| min-height: 6rem; | |
| } | |
| button { | |
| cursor: pointer; | |
| } | |
| button:active { | |
| transform: translateY(1px); | |
| } | |
| img, video { | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| table { | |
| border-collapse: collapse; | |
| width: 100%; | |
| margin: 1em 0; | |
| } | |
| th, td { | |
| border: 1px solid #ddd; | |
| padding: .5rem; | |
| text-align: left; | |
| } | |
| th { | |
| background: #f9f9f9; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment