Merge pull request 'style(theme): apply the Data Controller brand palette and logo' (#12) from docs/onbrand-styling into main
Publish to docs.datacontroller.io / Deploy docs (push) Successful in 1m16s
Publish to docs.datacontroller.io / Deploy docs (push) Successful in 1m16s
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Data Controller brand overrides for the Material theme.
|
||||
*
|
||||
* The values below mirror the marketing site (https://datacontroller.io): the
|
||||
* slate used for its navbar and hero, and the green used for its logo accent.
|
||||
* They are wired up through the `custom` palette in mkdocs.yml, which leaves
|
||||
* these CSS variables for us to define.
|
||||
*/
|
||||
|
||||
/* Primary - the brand slate, used for the header, the mobile drawer title and body links. */
|
||||
:root,
|
||||
[data-md-color-primary='custom'] {
|
||||
--md-primary-fg-color: #314351;
|
||||
--md-primary-fg-color--light: #3d5468;
|
||||
--md-primary-fg-color--dark: #263542;
|
||||
--md-primary-bg-color: #fff;
|
||||
--md-primary-bg-color--light: #ffffffb3;
|
||||
--md-typeset-a-color: #314351;
|
||||
}
|
||||
|
||||
/* Accent - the brand green, used for link hover, focus rings and the active search hit. */
|
||||
[data-md-color-accent='custom'] {
|
||||
--md-accent-fg-color: #79a843;
|
||||
--md-accent-fg-color--transparent: #79a8431a;
|
||||
--md-accent-bg-color: #fff;
|
||||
--md-accent-bg-color--light: #ffffffb3;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<svg width="70" height="70" viewBox="0 0 70 70" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_101_8)">
|
||||
<path d="M37.5993 16.6212C38.5916 16.7415 39.5538 16.8317 40.5461 16.9519C42.9216 17.2827 45.237 17.7337 47.402 18.8463C48.0334 19.1771 48.6348 19.5379 49.0859 20.1092C49.8075 20.9512 49.7774 21.8533 49.0558 22.6952C48.304 23.5371 47.3418 24.0183 46.3195 24.4092C43.944 25.3413 41.4482 25.7623 38.9224 25.9728C34.8029 26.3035 30.7435 26.1532 26.7142 25.191C25.3911 24.8903 24.0981 24.4693 22.9254 23.8078C22.4744 23.5672 22.0534 23.2665 21.6625 22.9057C20.58 21.8533 20.58 20.7407 21.6926 19.7484C22.8954 18.6659 24.3688 18.1547 25.8722 17.7337C27.9771 17.1324 30.112 16.8317 32.277 16.6813C32.4575 16.6813 32.6679 16.7415 32.8183 16.5911C34.3819 16.6212 36.0056 16.6212 37.5993 16.6212Z" fill="#E0E0E0"/>
|
||||
<path d="M20.8507 41.3082C22.7751 43.7738 25.5115 44.6759 28.338 45.2773C33.9309 46.4801 39.5238 46.3297 44.9663 44.4053C46.6502 43.8039 48.2138 42.992 49.3264 41.4886C49.5068 41.248 49.597 41.3683 49.6872 41.5487C49.8677 41.9396 49.9579 42.3305 49.9579 42.7515C49.9579 44.2249 49.9579 45.7284 49.9579 47.2018C49.9579 48.164 49.5068 48.9157 48.8453 49.5772C47.4621 50.9604 45.7181 51.7122 43.8838 52.2835C40.1853 53.4261 36.3966 53.6667 32.5777 53.3961C29.7212 53.1856 26.9548 52.6443 24.3387 51.4716C23.2261 50.9604 22.2038 50.3591 21.3919 49.4269C20.7605 48.7052 20.4297 47.8934 20.4297 46.9311C20.4598 45.578 20.4297 44.2249 20.4297 42.8718C20.4297 42.3305 20.5199 41.8193 20.8507 41.3082Z" fill="#8EC63F"/>
|
||||
<path d="M20.8807 32.0167C22.4744 34.1516 24.6996 35.0537 27.075 35.6852C32.7582 37.1886 38.4413 37.1586 44.0643 35.4747C45.9286 34.9334 47.6726 34.1216 49.0258 32.6482C49.2062 32.4677 49.3265 32.0468 49.5369 32.1069C49.8376 32.1971 49.8376 32.6181 49.9278 32.9488C50.0481 33.46 49.988 33.9712 49.988 34.4824C49.988 35.5047 49.9579 36.497 49.988 37.5194C50.0481 38.7823 49.5369 39.7746 48.6048 40.5865C47.1915 41.8494 45.4776 42.6011 43.6433 43.0822C37.4791 44.7361 31.3449 44.706 25.3009 42.6011C23.8275 42.09 22.4744 41.3683 21.3919 40.1956C20.7304 39.4739 20.3997 38.632 20.3997 37.6397C20.4297 36.3166 20.3997 34.9635 20.3997 33.6404C20.4297 33.0992 20.5199 32.5579 20.8807 32.0167Z" fill="#E0E0E0"/>
|
||||
<path d="M20.8207 23.0861C21.2717 24.4091 22.3542 25.0105 23.4969 25.5517C25.5416 26.514 27.7366 26.965 29.9317 27.2357C34.2918 27.7769 38.6519 27.7168 42.9518 26.8147C44.6958 26.4539 46.3797 25.9727 47.9132 25.0105C48.7853 24.4693 49.2363 23.9581 49.537 23.1161C49.8377 23.5371 49.9279 23.9882 49.9279 24.4392C49.9279 25.9427 49.958 27.4161 49.9279 28.9195C49.8978 30.1825 49.1762 31.0845 48.244 31.8363C46.5 33.2195 44.4553 33.9411 42.3203 34.4223C36.6673 35.6551 31.0744 35.5649 25.5717 33.7006C24.1283 33.2195 22.7451 32.5279 21.6326 31.4454C20.7906 30.6335 20.3396 29.7014 20.3696 28.4986C20.3997 27.2056 20.3696 25.9126 20.3696 24.6196C20.4298 24.0483 20.52 23.5672 20.8207 23.0861Z" fill="#8EC63F"/>
|
||||
<path d="M55.3403 63.4393C60.2417 63.7099 62.8577 57.696 59.3095 54.2981C55.5809 50.7199 49.4467 54.0576 50.409 59.1093C28.2478 73.2419 -0.258034 52.1031 7.86071 26.4238L2.38808 22.7553C-9.91033 55.4408 27.9471 83.0746 55.3403 63.4393ZM53.7767 56.3729C56.062 53.9974 59.7004 57.3051 57.5655 59.8009C55.3103 62.4169 51.3411 58.8988 53.7767 56.3729Z" fill="#E0E0E0"/>
|
||||
<path d="M10.6272 15.2681C14.1453 18.6358 19.9487 15.8694 19.6179 11.0583C41.749 -3.19461 70.4052 17.9142 62.2865 43.6836L67.7591 47.3521C79.6967 15.5988 43.463 -12.9972 15.4383 6.21715C10.1761 5.13465 6.77827 11.5695 10.6272 15.2681ZM16.1599 13.1933C13.8145 15.6289 10.116 12.0807 12.4614 9.64507C14.8068 7.20944 18.5054 10.7576 16.1599 13.1933Z" fill="#8EC63F"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_101_8">
|
||||
<rect width="70" height="70" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
+8
-5
@@ -96,7 +96,9 @@ markdown_extensions:
|
||||
extra:
|
||||
manifest: manifest.webmanifest
|
||||
|
||||
extra_css: ['font-awesome.css']
|
||||
extra_css:
|
||||
- font-awesome.css
|
||||
- dc-brand.css
|
||||
|
||||
plugins:
|
||||
- search:
|
||||
@@ -112,12 +114,13 @@ repo_url: 'https://git.datacontroller.io/dc/docs.datacontroller.io'
|
||||
|
||||
theme:
|
||||
name: material
|
||||
logo: 'img/favicon.ico'
|
||||
logo: 'img/dc-logo.svg'
|
||||
palette:
|
||||
primary: 'White'
|
||||
accent: 'Amber'
|
||||
- scheme: default
|
||||
primary: custom
|
||||
accent: custom
|
||||
font:
|
||||
text: 'Open Sans'
|
||||
text: 'Montserrat'
|
||||
code: 'Ubuntu Mono'
|
||||
favicon: img/favicon.ico
|
||||
custom_dir: 'theme'
|
||||
|
||||
Reference in New Issue
Block a user