@yummacss/api
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Yumma CSS utility classes for all your development needs.

NPM Version NPM Downloads

Getting started

Yumma CSS API is a powerful TypeScript/JavaScript utility library that provides programmatic access to Yumma CSS class definitions.

Installing

npm i @yummacss/api

Usage examples

Get all utilities at once:

import { getAllUtils } from "@yummacss/api";

const all = getAllUtils();

Get only background utilities:

import { getBackgroundUtils } from "@yummacss/api";

const backgrounds = getBackgroundUtils();

Access a specific utility from a category:

import { getBoxModelUtils } from "@yummacss/api";

const boxModel = getBoxModelUtils();
const margin = boxModel["margin"];

Available API

Import utility group functions individually:

import {
  getAllUtils,
  getBackgroundUtils,
  getBorderUtils,
  getBoxModelUtils,
  getColorUtils,
  getEffectUtils,
  getFlexboxUtils,
  getFontUtils,
  getGridUtils,
  getInteractivityUtils,
  getOutlineUtils,
  getPositioningUtils,
  getSvgUtils,
  getTableUtils,
  getTextUtils,
  getTransformUtils,
} from "@yummacss/api";

For advanced use cases use these types:

import type { UtilityMap, UtilityItem } from "@yummacss/api";

Built with

License

This project is licensed under the MIT License

Package Sidebar

Install

npm i @yummacss/api

Weekly Downloads

147

Version

1.3.0

License

MIT

Unpacked Size

39.2 kB

Total Files

5

Last publish

Collaborators

  • rrenildopereiraa