0.3.0 • Published 11 months ago

shiraha-colors v0.3.0

Weekly downloads
-
License
WTFPL
Repository
github
Last release
11 months ago

Shiraha Colors

Browser script to generate colors for Shiraha / Material Web.

Usage

<script type="module" src="https://esm.run/shiraha-colors" async></script>

nomodule

Add <script nomodule to be used in environments that do not support ES Module.

<head>
  <script type="module" src="https://esm.run/shiraha-colors" async></script>
  <script nomodule src="https://esm.run/shiraha-colors/nomodule" async></script>
</head>

worker (experimental)

An experimental version that moves some of the work to Web Worker but increases in size.

<script type="module" src="https://esm.run/shiraha-colors/worker" async></script>

Configuration

You can see all supported configuration options in src/global.d.ts.

<head>
  <script>
    shiraha = {
      colors: {
        /* Shiraha Colors Config */
      },
    }
  </script>
  <script type="module" src="https://esm.run/shiraha-colors" async></script>
</head>

with Partytown

Shiraha Colors is currently not compatible with Partytown. see #20

Partytown does not support ES Module at this time. see partytown#195

<head>
  <script
    type="text/partytown"
    src="https://esm.run/shiraha-colors/nomodule"
    async
  ></script>
  <script>
    partytown = {
      forward: ['shiraha'],
    }
  </script>
  <script>
    /* Inlined Partytown Snippet */
  </script>
</head>
0.3.0

11 months ago

0.2.1

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.1.0

1 year ago

0.0.1

1 year ago

0.0.3

1 year ago

0.2.0

12 months ago

0.0.2

1 year ago

0.0.1-alpha.0

1 year ago