Svbstrate
  • Overview
  • Theming
  • Styling
  • React
  • React Native
  • CSS
  • Core
Powered by GitBook
On this page

CSS

import { create } from '@svbstrate/css'

const svbstrate = create({ ...theme })

svbstrate.css({ color: 'red' })
svbstrate.injectGlobal({
    'html, body': {
        padding: 0,
    },
})

const sheet = svbstrate.flush()
// => ._abc123 { color: 'red' } html, body { padding: 0 }
PreviousReact NativeNextCore

Last updated 1 year ago