How to use the reakit-system-palette/utils.useLighten function in reakit-system-palette

To help you get started, we’ve selected a few reakit-system-palette examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reakit / reakit / packages / website / src / components / DocsNavigation.tsx View on Github external
function useDocsNavigationCSS() {
  const background = usePalette("background");
  const foreground = usePalette("foreground");
  const primary = usePalette("primary");
  const currentBackgroundColor = useLighten(primary, 0.85);
  const headingColor = useLighten(foreground, 0.5);

  const docsNavigation = css`
    background-color: ${background};
    color: ${foreground};
    h3 {
      font-size: 0.85em;
      text-transform: uppercase;
      padding: 0 1em;
      color: ${headingColor};
      font-weight: 400;
    }
    nav {
      margin: 1.5em 0 0 0;
      &:first-of-type {
        margin: 0;
github reakit / reakit / packages / website / src / components / Blockquote.tsx View on Github external
useProps(options, htmlProps) {
      const isExperimental = options.experimental === "true";
      const warning = usePalette("warning");
      const backgroundColor = useLighten(warning, 0.85);
      const borderColor = useLighten(warning, 0.3);
      const color = useContrast(backgroundColor);
      const blockquote = css`
        color: ${color};
        background-color: ${backgroundColor};
        border-left-color: ${borderColor};
        border-left-width: 8px;
        border-left-style: solid;
        padding: 20px 16px 20px 25px;
        margin: 20px 0;
        line-height: 1.5;

        p {
          margin: 0;
        }

        ${isExperimental &&
github reakit / reakit / packages / website / src / components / DocsNavigation.tsx View on Github external
function useDocsNavigationCSS() {
  const background = usePalette("background");
  const foreground = usePalette("foreground");
  const primary = usePalette("primary");
  const currentBackgroundColor = useLighten(primary, 0.85);
  const headingColor = useLighten(foreground, 0.5);

  const docsNavigation = css`
    background-color: ${background};
    color: ${foreground};
    h3 {
      font-size: 0.85em;
      text-transform: uppercase;
      padding: 0 1em;
      color: ${headingColor};
      font-weight: 400;
    }
    nav {
      margin: 1.5em 0 0 0;
      &:first-of-type {
        margin: 0;
      }
github reakit / reakit / packages / website / src / components / Footer.tsx View on Github external
export default function Footer() {
  const foreground = usePalette("foreground");
  const color = useLighten(foreground, 0.35);
  return (
github reakit / reakit / packages / website / src / components / DocsInnerNavigation.tsx View on Github external
function useDocsInnerNavigationCSS() {
  const background = usePalette("background");
  const foreground = usePalette("foreground");
  const borderColor = useLighten(foreground, 0.9);

  const docsInnerNavigation = css`
    font-size: 0.875em;
    background-color: ${background};
    color: ${foreground};

    > * {
      margin-bottom: 16px;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
github reakit / reakit / packages / website / src / components / Blockquote.tsx View on Github external
useProps(options, htmlProps) {
      const isExperimental = options.experimental === "true";
      const warning = usePalette("warning");
      const backgroundColor = useLighten(warning, 0.85);
      const borderColor = useLighten(warning, 0.3);
      const color = useContrast(backgroundColor);
      const blockquote = css`
        color: ${color};
        background-color: ${backgroundColor};
        border-left-color: ${borderColor};
        border-left-width: 8px;
        border-left-style: solid;
        padding: 20px 16px 20px 25px;
        margin: 20px 0;
        line-height: 1.5;

        p {
          margin: 0;
        }