New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@papyrus-ui/style-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@papyrus-ui/style-utils

Style utilities for implementing components based on the Papyrus UI design system.

latest
Source
npmnpm
Version
0.6.1
Version published
Maintainers
1
Created
Source

@papyrus-ui/base

Global styles, themes and style utilities for implementing components based on the Papyrus UI design system.

Getting Started:

  • Create Utility Classes with atoms()

    Define utility classes using the atoms() function provided by @papyrus-ui/base.

    // card.css.ts
    
    import { atoms } from '@papyrus-ui/theme';
    
    export const card = atoms({
      p: 4,
      rounded: 'md',
      shadow: 'md',
      bg: 'white',
    });
    

    Atoms can be generated at runtime as well. However, defining them in .css.ts files ensures that all calculations are performed during the build phase.

  • Create a Card Component

    Utilize the defined utility class (card) to create a custom Card component:

    import React from 'react';
    import * as S from './card.css.ts';
    
    const Card: React.FC<{ title: string; content: string }> = ({ title, content }) => {
      return (
        <div className={S.card}>
          <h2>{title}</h2>
          <p>{content}</p>
        </div>
      );
    };
    
    export default Card;
    

Contributing

We welcome contributions to enhance Papyrus UI. To contribute, fork the repository, make your changes, and submit a pull request. If you encounter issues or have suggestions, please open an issue on GitHub.

FAQs

Package last updated on 29 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts