Git Product home page Git Product logo

zero-base-themes's Introduction

Zero Base Themes

An assortment of Chrome Devtools themes that use the Zero Base Template.

Contributing

Zero Base Themes is built on LESS. Grunt is used to listen for changes to LESS files and generates CSS. This means Node is required.

Getting Started

  1. Clone this repo: git clone https://github.com/mauricecruz/zero-base-themes.git.

  2. Install dependencies: npm install.

  3. To use an existing theme: grunt. (If you're going to work on your own theme: grunt watch to listen for changes).

  4. Chrome > Preferences... > Extensions > DevTools Theme: Zero Dark Matrix = Enabled

  5. chrome://flags (make sure Enable Developer Tools experiments is enabled).

  6. In Chrome Dev Tools > Settings (cog icon or Shift+?) > Experiments > Allow custom UI themes.

  7. Close and reopen the dev tools.

Contributing to Template Source

All template files are located in the /less directory. Files beginning with an _ indicate template partials. Any addition/removal of template partials should be reflected in the build file.

Changing Themes

Copy /themes/_theme-template.less and modify color values accordingly. Rename the file and save in the /themes directory. Specify the theme of your choice in config.less.

Alternatives

Chrome now has an option to let you select different themes via Settings > Appearance > Theme: Light/Dark.

Additional Resources

Blog post and screencast showing how to get up and running and create your own theme as well http://s10wen.com/blog/2014/03/12/chrome-dev-tools-theming-with-zero-base-themes/

zero-base-themes's People

Contributors

adambullmer avatar gbraad avatar markneves avatar mauricecruz avatar noptoboggan avatar s10wen avatar superzadeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zero-base-themes's Issues

create fallback stylesheet

Theme stylesheets will change from time to time. It will be up to the theme author to update their stylesheets to reflect any changes that leverage new variables.

A fallback stylesheet will be used to default a variable if the author hasn't updated their stylesheet yet.

Devtools Tab

Create a front-end in devtools to load different themes.

Font-size and Font-family

Hi,

Really love this repo, very useful. I would like to be able to change font-family (e.g. to Source Code Pro) and font-size. Could this be implemented?

Cheers, Andrew

Theme specifc animation / child highlighters

With this code:

// Animations
//************************************************************************/
// Disable if experiencing jankiness. Toggles animations for: certain
// sidebar panels | current selection on elements panel | child-highlighter
.show-animations( true );

// Child Highlighter
//************************************************************************/
// Highlights the children of the selected node.
.show-child-highlighter( true );

I'm thinking these might be better situated in the theme files. For example if someone creates a new theme and set both these to false, then someone else wants to view the theme, but leaves these as true, then the theme author may not have tested them and they may break.

Make sense?

Error compiling less/build-stable.less

Hi, I am getting the following error when I try to change the theme in config.less while running grunt watch:

>> File "less\config.less" changed.

Running "less:generate" (less) task
>> NameError: variable @gradient-top is undefined in themes\s10wen-monokai.less on line 179, column 42:
>> 178 // Forms
>> 179 @form-button-background: linear-gradient(@gradient-top,@gradient-bottom);
>> 180 @form-button-border    : lighten(@global-background, 10%);
Warning: Error compiling less/build-stable.less Use --force to continue.

Aborted due to warnings.
Completed in 0.530s at Wed Nov 12 2014 13:14:12 GMT+0000 (GMT Standard Time) - Waiting...

Please can you advise me on how to fix this. Many thanks

Optional Features

Functions that should be optional per theme

  • Animations
  • Child highlighting of dom elements

find a way to style dom highlighted nodes

Canary has a new feature that highlights dom changes in the elements panel.

image

I can override the .dom-update-highlight selector by prefixing it with either ::shadow or /deep/. But I can't figure out a way to override the animation.

It leverages these styles injected into the shadow root:

@-webkit-keyframes dom-update-highlight-animation {
    from {
        background-color: rgb(158, 54, 153);
        color: white;
    }
    80% {
        background-color: rgb(245, 219, 244);
        color: inherit;
    }
    to {
        background-color: inherit;
    }
}

.dom-update-highlight {
    -webkit-animation: dom-update-highlight-animation 1.4s 1 cubic-bezier(0, 0, 0.2, 1);
    border-radius: 2px;
}

It is possible to 'inject' keyframes into shadow dom without using js?

CHANGELOG.md

When everything is tidied up, create a CHANGELOG.md file and start tagging ๐ŸŽฑ

Grunt error: NameError: variable @sources-text is undefined in less/stable/_panel-sources.less on line 8, column 9

I'm following the instructions carefully but I get this error in my grunt watch

note: it's a fresh git pull from the repo, nothing's changed except the path to custom.css in my filesystem (which is the same as in the explanation)

The error:

Running "less:stable" (less) task

NameError: variable @sources-text is undefined in less/stable/_panel-sources.less on line 8, column 9:
7 text-shadow: 0 1px 0 @global-textshadow !important;
8 color: @sources-text !important;
9 }
Warning: Error compiling less/stable/build.less Use --force to continue.

Toolbar styling is not working in Canary 41.0.2238.0

Not sure if this issue began on this exact version, but the toolbar styling as well as the styles toolbar styling seems to no longer take effect.

I reloaded with a few different themes and got the same result, so it does not appear to be theme specific.

Here's a screengrab:
toolbar-styling-no-effect

Great plugin, thanks!

standardize links

Links should generally default to the same color to optimize for visual scanning. Will probably create a global-link var.

Screencast

Including how to get up and running, how to contribute and how to make your own theme.

cleanup canary.css

Since stable moved alot of the views into shadow dom, canary.css content should fold back into their respective stylesheets.

Probably a good opportunity for cleaning up legacy selectors as well. This is gonna be a pain in the ass.

Suggestions on how to go about it are welcome.

Build error

Using the current defaults; @theme : "zero-dark-matrix"; .show-animations( true ); .show-child-highlighter( true ); @import "../themes/@{theme}";

I'm getting:

>> ParseError: Unrecognised input in less/_mixins.less on line 49, column 13:
>> 48 .adjust(@selector, @color, @percent, @invert: false) when (@invert = false) and (@theme-type = dark), (@invert = true) and (@theme-type = light) {
>> 49   @{selector}: lighten(@color, @percent) !important; /*lighten*/
>> 50 }

Sort background images

Update paths to images such as chrome-devtools://devtools/bundled/Images/paneAddButtons.png to base64 incase these are removed from core

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.