瀏覽代碼

add one-light palette to readme

one
Garrick Aden-Buie 7 年之前
父節點
當前提交
ffd9378698
共有 8 個檔案被更改,包括 22 行新增28 行删除
  1. +2
    -1
      README.Rmd
  2. +1
    -1
      README.md
  3. +6
    -6
      dist/one-light.rstheme
  4. 二進制
      docs/palettes-1.png
  5. 二進制
      docs/palettes-2.png
  6. 二進制
      docs/palettes-3.png
  7. 二進制
      docs/palettes-4.png
  8. +13
    -20
      src/palettes/_one-light.scss

+ 2
- 1
README.Rmd 查看文件

@@ -31,7 +31,8 @@ source("R/show_colors.R")
themes <- list(
"Solarized" = "_solarized.scss",
"Nord" = "_nord.scss",
"Oceanic Plus" = "_oceanic-plus.scss"
"Oceanic Plus" = "_oceanic-plus.scss",
"One Light" = "_one-light.scss"
)

for (theme in names(themes)) {

+ 1
- 1
README.md 查看文件

@@ -13,4 +13,4 @@ RStudio version 1.2 (and possibly RStudio

## Palettes

![](docs/palettes-1.png)<!-- -->![](docs/palettes-2.png)<!-- -->![](docs/palettes-3.png)<!-- -->
![](docs/palettes-1.png)<!-- -->![](docs/palettes-2.png)<!-- -->![](docs/palettes-3.png)<!-- -->![](docs/palettes-4.png)<!-- -->

+ 6
- 6
dist/one-light.rstheme 查看文件

@@ -2,7 +2,7 @@
/* rs-theme-is-dark: FALSE */
.ace_gutter {
background: #fafafa;
color: #9d9d9f;
color: #9e9e9e;
}

.ace_print-margin {
@@ -50,7 +50,7 @@
}

.ace_marker-layer .ace_selection {
background: #e5e5e6;
background: #e6e6e6;
}

.ace_marker-layer .ace_step {
@@ -67,7 +67,7 @@
}

.ace_marker-layer .ace_selected-word {
border: 1px solid #e5e5e6;
border: 1px solid #e6e6e6;
}

.ace_marker-layer .ace_foreign_line {
@@ -85,7 +85,7 @@
.ace_marker-layer .ace_find_line {
position: absolute;
z-index: -1;
background-color: #e5e5e6;
background-color: #e6e6e6;
}

.ace_gutter-active-line {
@@ -212,7 +212,7 @@
}

.ace_console_error {
background-color: #e5e5e6;
background-color: #e6e6e6;
}

.ace_layer {
@@ -406,7 +406,7 @@ table.rstheme_tabLayoutCenter .gwt-Label, .rstudio-themes-flat .rstudio-themes-d

.terminal .xterm-selection div {
position: absolute;
background-color: #e5e5e6;
background-color: #e6e6e6;
}

.terminal .xterm-viewport {

二進制
docs/palettes-1.png 查看文件

Before After
Width: 960  |  Height: 384  |  Size: 28KB Width: 960  |  Height: 384  |  Size: 15KB

二進制
docs/palettes-2.png 查看文件

Before After
Width: 960  |  Height: 384  |  Size: 25KB Width: 960  |  Height: 384  |  Size: 14KB

二進制
docs/palettes-3.png 查看文件

Before After
Width: 960  |  Height: 384  |  Size: 29KB Width: 960  |  Height: 384  |  Size: 16KB

二進制
docs/palettes-4.png 查看文件

Before After
Width: 960  |  Height: 384  |  Size: 14KB

+ 13
- 20
src/palettes/_one-light.scss 查看文件

@@ -1,34 +1,27 @@

// Config -----------------------------------
$syntax-hue: 230;
$syntax-saturation: 1%;
$syntax-brightness: 98%;


// Monochrome -----------------------------------
$mono-1: hsl($syntax-hue, 8%, 24%);
$mono-2: hsl($syntax-hue, 6%, 44%);
$mono-3: hsl($syntax-hue, 4%, 64%);
$mono-1: #383a42;
$mono-2: #696c77;
$mono-3: #a0a1a7;

// Colors -----------------------------------
$hue-1: hsl(198, 99%, 37%); // <-cyan
$hue-2: hsl(221, 87%, 60%); // <-blue
$hue-3: hsl(301, 63%, 40%); // <-purple
$hue-4: hsl(119, 34%, 47%); // <-green
$hue-1: #0184bc; // <-cyan
$hue-2: #4078f2; // <-blue
$hue-3: #a626a4; // <-purple
$hue-4: #50a14f; // <-green

$hue-5: hsl( 5, 74%, 59%); // <-red 1
$hue-5-2: hsl(344, 84%, 43%); // <-red 2
$hue-5: #e45649; // <-red 1
$hue-5-2: #ca1243; // <-red 2

$hue-6: hsl(41, 99%, 30%); // <-orange 1
$hue-6-2: hsl(41, 99%, 38%); // <-orange 2
$hue-6: #986801; // <-orange 1
$hue-6-2: #c18401; // <-orange 2


// Base colors -----------------------------------
$syntax-fg: $mono-1;
$syntax-bg: hsl($syntax-hue, $syntax-saturation, $syntax-brightness);
$syntax-bg: #fafafa;
$syntax-gutter: darken($syntax-bg, 36%);
$syntax-guide: fade-out($syntax-fg, 0.2);
$syntax-accent: hsl($syntax-hue, 100%, 66% );
$syntax-accent: #526fff;

// General colors
$syntax-text-color: $syntax-fg;

Loading…
取消
儲存