Skip to main content
Module

x/goober/global/src/index.js

πŸ₯œ goober, a less than 1KB πŸŽ‰ css-in-js alternative with a familiar API
Go to Latest
File
import { css, styled } from 'goober';
/** * CSS Global function to declare global styles * @type {Function} */export let glob = css.bind({ g: 1 });
/** * Creates the global styles component to be used as part of your tree. * @returns {Function} */export function createGlobalStyles() { const fn = styled.call({ g: 1 }, 'div').apply(null, arguments);
/** * This is the actual component that gets rendered. */ return function GlobalStyles(props) { // Call the above styled. fn(props);
// Returns a hole. return null; };}