cerebral / classy-ui

An automatically optimized design system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possiblity to add global styles

th-km opened this issue · comments

I miss the global styles from Tailwind. It'd be great to have something simple like that:

import React from 'react'
import { base } from 'classy-ui'

export const Layout = ({ children }) => (
    <div className={base()}>{children}</div>
)

Also, I'm not sure I've read that on the docs, but how would you handle custom styling when you want to escape from the design system?

I'm just adding my thought here, a better/easier solution would be to add the tw base styles as an option in the babel config, as it is something you want in most cases.