# goober > goober is a css-in-js library with the styled paradigm in about 1.2 KB gzipped. API: styled, css, keyframes, extractCss, createGlobalStyles, setup. Framework agnostic: call setup(pragma) once before the first styled() call. Key facts for coding agents: - Install: `npm i goober`. - Call `setup(React.createElement)` (or `setup(h)` for Preact) once in the entry file, before any `styled()`. - Import named exports only: `import { styled, css, keyframes } from 'goober'`. There is no default export. - Not supported: `.attrs`, `.withComponent`, labels, ClassNames. `styled.div` needs the babel plugin or macro. - Add-ons: `goober/global`, `goober/prefixer`, `goober/should-forward-prop`. ## Docs - [Introduction](https://goober.js.org/): What goober is, install, and a first styled component - [styled](https://goober.js.org/api/styled): Create components with template strings, functions, objects or arrays - [setup](https://goober.js.org/api/setup): Required once at the entry file: pragma, prefixer, theme, forwardProps - [css](https://goober.js.org/api/css): Get a class name, no framework needed - [targets](https://goober.js.org/api/targets): Render styles into a shadow root or any other node - [extractCss](https://goober.js.org/api/extractCss): Critical css for server rendering - [createGlobalStyles](https://goober.js.org/api/createGlobalStyles): Global styles as a component - [keyframes](https://goober.js.org/api/keyframes): Reusable animations - [shouldForwardProp](https://goober.js.org/api/shouldForwardProp): Keep custom props off the DOM - [Babel plugin](https://goober.js.org/integrations/babel-plugin): The styled.div syntax - [Babel macro](https://goober.js.org/integrations/babel-macro-plugin): styled.div via babel-plugin-macros - [Gatsby](https://goober.js.org/integrations/gatsby): gatsby-plugin-goober - [Preact CLI](https://goober.js.org/integrations/preact-cli-plugin): Critical css on pre-rendered pages - [CSS prop](https://goober.js.org/integrations/css-prop): A css prop on html elements - [Checklist](https://goober.js.org/features/checklist): Supported features - [Sharing style](https://goober.js.org/features/sharing-style): Extending and the as prop - [Autoprefixer](https://goober.js.org/features/autoprefixer): Vendor prefixing via goober/prefixer - [TypeScript](https://goober.js.org/features/typescript): Prop types and theme typing - [Contributing](https://goober.js.org/contributing): How to contribute ## Agent resources - [llms-full.txt](https://goober.rocks/llms-full.txt): all of the docs above in one file - [SKILL.md](https://goober.rocks/skill/SKILL.md): an Agent Skill for goober. Install with `npx skills add cristianbote/goober` - [This site as markdown](https://goober.rocks/index.md) ## Optional - [GitHub](https://github.com/cristianbote/goober): source, issues, the README - [The Great Shave Off](https://goober.rocks/the-great-shave-off.md): a bounty for removing bytes