0.10.1 • Published 3 years ago

@improv/css v0.10.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@improv/css

SizeBadge SizeBadge SizeBadge

Tiny CSS string parsing utilities.

Try it on codesandbox.io.

Getting Started

import { useStyle } from "@improv/react";
import { css } from "@improv/css";

export function MyComponent(): JSX.Element {
  const className = useStyle(css`
    color: black;
    :hover {
      text-decoration: underline;
    }
  `);

  return <div className={className}>Hello, world!</div>;
}

API

Tagged Templates

  • css
    • Returns a style object parsed from the template style text, which can be passed to any Improv style function (e.g. useStyle()).
    • If you are using VSCode, you can enable highlighting and linting by installing the vscode-styled-components plugin.

Utilities

  • getStyle(styleText)
    • Returns a style object parsed from raw Improv (SCSS-like) style text, which can be passed to any Improv style function (e.g. useStyle()).
0.10.1

3 years ago

0.10.0

3 years ago

0.9.18

3 years ago

0.9.17

3 years ago

0.9.12

3 years ago

0.9.13

3 years ago

0.9.6-next.0

3 years ago

0.9.14

3 years ago

0.9.15

3 years ago

0.9.10

3 years ago

0.9.11

3 years ago

0.9.16

3 years ago

0.9.6-alpha.0

3 years ago

0.9.8

3 years ago

0.9.7

3 years ago

0.9.9

3 years ago

0.9.4

3 years ago

0.9.5

3 years ago

0.9.7-alpha.2

3 years ago

0.9.7-alpha.1

3 years ago

0.9.7-alpha.0

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.0

3 years ago

0.9.1

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.5

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.3.9-next.0

3 years ago

0.4.0

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.2.8-next.4

3 years ago

0.2.8-next.3

3 years ago

0.3.1

3 years ago

0.2.8-test.1

3 years ago

0.2.8-test.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.11

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago