properties
changelog

Text Content For Pseudo Elements

Set text content for pseudo-elements (::before and ::after).

Usage:

  • @text content-*;

Reference

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

  properties: {
    text: {
      content: {
        property: "content: <v><i>;",
        values: {
          empty: "",
          none: "none",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: