How to use the @codesandbox/common/lib/theme.secondary function in @codesandbox/common

To help you get started, we’ve selected a few @codesandbox/common 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 codesandbox / codesandbox-client / packages / app / src / app / components / Preview / DevTools / Console / Input / index.tsx View on Github external
render() {
    // TODO: Put the Monaco editor back here. It was removed because I wasn't able to use the Monaco editor separately yet
    // without interfering with VSCode instance. The solution will be to create a separate build for Monaco and
    // load that one, but the question is whether we can make it use different paths (vs/ -> monaco/) so it doesn't
    // collide with VSCode
    return (
      
        
          
        
        
          
            <div>
          
        
      
    );
  }
}</div>
github codesandbox / codesandbox-client / packages / homepage / src / screens / home / CycleFeature / index.js View on Github external
<span style="{{" id="progress-text">
                    Deploying...
                  </span>
                  <span id="deploy-text" style="{{">
                    https://csb-921ywn9qrw-emlplxhibt.now.sh/
                  </span>
                  <progress id="progress">
                </progress>
              
            
          
        
      
    );
  }
}
github codesandbox / codesandbox-client / packages / app / src / app / pages / common / Notifications / Notification / elements.js View on Github external
border-color: ${props => {
    if (props.type === 'error') return theme.red.darken(0.2)();
    if (props.type === 'warning') return theme.primary.darken(0.2);
    if (props.type === 'success') return theme.green();
    return theme.secondary();
  }};
github codesandbox / codesandbox-client / packages / app / src / app / pages / index.tsx View on Github external
if (process.env.NODE_ENV === 'production') {
            routeDebugger(
              `Sending '${location.pathname + location.search}' to analytics.`
            );
            if (!DNT) {
              trackPageview();
            }
          }
          return null;
        }}
      /&gt;
      
      
        <content>
          </content>
github codesandbox / codesandbox-client / packages / homepage / src / components / StickyNavigation.js View on Github external
render() {
    const { docs } = this.props;

    const activeStyle = {
      color: theme.secondary(),
      fontWeight: 700,
    };

    return (
      
        <ul>
          {docs.map(({ node }) =&gt; (
            
              </ul>
github codesandbox / codesandbox-client / packages / app / src / app / components / CodeEditor / VSCode / Configuration / index.tsx View on Github external
<div style="{{">
          
          <title>{config.title}</title>
        </div>
        <button tabindex="{-1}" style="{{" type="button"> this.props.openText()}
        &gt;
          Open file in editor
        </button>
        
          {config.description}{' '}
github codesandbox / codesandbox-client / packages / homepage / src / screens / home / CycleFeature / index.js View on Github external
y: 40,
          ease: Power2.easeOut,
        },
        '-=0.6'
      )
      .to(
        '#addition-cube',
        0.2,
        {
          y: -40,
        },
        '-=0.2'
      )
      .to('.main-cube-side', 0.7, {
        backgroundColor: Theme.secondary.clearer(0.2)(),
        boxShadow: `0px 0px 150px ${Theme.secondary()}`,
        ease: Power2.easeInOut,
      })
      .to(
        '#deploy-container',
        0.6,
        {
          width: '100%',
          ease: Power2.easeInOut,
        },
        'step3'
      )
      .to(this.cube, 1.2, {
        y: this.verticalSteps[3] - cubeY + 40,
        scale: 0.5,
        ease: Power2.easeInOut,
      })
github codesandbox / codesandbox-client / packages / app / src / app / pages / Dashboard / Sidebar / SandboxesItem / FolderEntry / index.tsx View on Github external
action: () =&gt; {
          this.setState({ creatingDirectory: true, open: true });
          return true;
        },
      });
    }

    return connectDropTarget(
      connectDragSource(
        <div>
          
            </div>