properties
changelog

Text Style

Set text style for text elements.

Usage:

  • @text style-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    text: {
      style: {
        property: "font-style: <v><i>;",
        values: {
          normal: "normal",
          italic: "italic",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: