Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@davidsouther/jiffies-css

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@davidsouther/jiffies-css

Post-modern full-app CSS reset.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by60%
Maintainers
1
Weekly downloads
 
Created
Source

jiffies-css

Post-Modern CSS Full-Page Reset

Demo Page

Principles

  • Beautiful styles for semantic base elements
  • Components via relationships of semantic elements
  • Aria roles for selecting between component modalities
  • Express DOM states in visual style
  • User configuration via CSS Variables
  • User extension with targeted layers
  • Opinionated tables, whitespace, & nav
  • Responsive typography & container layouts; flexbox & css grid native utilities
  • Pure-CSS Accordions, Tabs
  • Accessible & Responsive

Inspiration

2023 Standards

Fonts

  • Body: Poppins
  • Text Header: Libre Baskerville
  • App Header: Roboto
  • Tables: Trebuchet MS
  • Code: JetBrains Mono

Layers

  • reset Base browser resets.
  • theme Define root variables.
  • layout Base semantic layout features.
  • content Styles for built-in browser elements.
  • components Opinionated, robust components
  • utility Class-based helper utilities.
  • user Untouched layer for users to override all properties.

Reset

  • Sanitize.css
  • Reduced Motion
  • Content
  • Containers body (> #root) > { main, header, footer, aside }(.fluid)
  • Overflow scrolling figure(.scroll-{x,y})
  • Block Typography html hgroup h1 h2 h3 h4 h5 h6 p ul ol blockquote textarea
  • Inline Typography a[.secondary,.contrast] abbr strong b em i cite del ins kbd mark s small sub sub u
  • Buttons button a[role=button] input[type={button,submit,reset]
  • Forms label input select textarea label fieldset legend
    • \[aria-invalid] \[disabled] \[readonly]
  • Toggles input\[type={checkbox,radio}]\[role=switch]
  • Extended Forms input [type={color,date,file,search}]
  • Tables table thead tbody tfoot tr th td

Components

  • Card & Panel {article, section} > {main, header, footer}
  • Accordion details { @nest summary }
  • Tab details \[role=tablist] summary\[role=tab]
  • Modal dialog
  • Navigation nav > ol
    • Breadcrumb span:has(nav > ol) nav > ol
  • Progress progress
  • Property Sheet dl, dt, dd
  • Form group fieldset\[role=group]

Layout

  • Loading \[aria-busy=true]
  • Tooltip \[data-tooltip][data-direction]
  • Flex .flex .row .inline .flex-{0-4} .justify-{around, between, center} .align-{baseline, center, stretch, end}
  • Grid

Accessibility

Responsive

SizeBreakpointViewportColumnsbase
xs0112px
sm510px425px114px
md768px700px116px
lg1024px920px218px
xl1440px1130px220px
4k2560px2170px424px

Selectors

component

element

state

Theming

Override variables.

  • Color (color)
  • Density
    • Spacing (spacing)
  • Typography (font)
    • Iconography
  • Motion

Constants

--phi-quart: 6.854 --phi-cube: 4.236 --phi-square: 2.618 --phi-3-2: 2.058 --phi: 1.618 --phi-half: 1.272 --phi-zero: 1 --phi-root: 0.786

Sizing

--sizing-base (responsive) --sizing- --spacing-block`

Typography

  • --font-size: --sizing-base: (1rem), --font-height: calc(var(--phi) * 1em)

    • --font-size-heading-title --phi-cube <h1>
    • --font-size-heading-container --phi-square <h2>
    • --font-size-heading-section --phi-3-2 <h3>
    • --font-size-body --phi-zero <p>
    • --font-size-figure --phi-half <figure> <figcaption>
  • --font-weight 400 Normal

    • --font-weight-heavy 700 Bold
    • --font-weight-light 300 Light
  • --font-family Poppins

    • --font-family-heading Jet-Brains Mono
    • --font-family-monospace Libre Baskerville
    • --font-family-table Trebuchet
  • --spacing Unitless spacing multiplier for margins and paddings. 1 = comfortable, .5 = compact

    • --spacing-block-horizontal, --spacing-block-vertical Modify vertical and horizontal density separately
  • --border-radius-container .5rem

  • --border-radius-item .25rem

    • --border-radius-button
    • --border-radius-input
  • --border-radius-inline .125rem

    • --border-radius-badge

Color

Full colors

  • --white
  • --black

Color part variables

  • --primary-luminance
  • --primary-chroma
  • --color-primary-hue
  • --color-form-base
    • --color-form-invalid
    • --color-form-disabled
    • --color-form-required

Color Functions

  • --color

Motion

  • --motion-duration-snap 115MS
  • --motion-duration-shake 165MS
  • --motion-duration-draw 250MS
  • --motion-curve-smooth (0.00, 0.00, 0.00, 1.00)
  • --motion-curve-sticky (1.00, 0.00, 0.83, 1.00)
  • --motion-curve-draw (0.84, 0.00, 0.16, 1.00)

FAQs

Package last updated on 08 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc