Files
Housekeeping-web-admin/node_modules/goober/global/src/index.js
T
2026-06-24 09:48:54 +02:00

19 lines
484 B
JavaScript

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);
// Render hook: call the styled fn for side-effects, return null vnode.
return (props) => (fn(props), null);
}