Browse Source

feat(ui): utilise Open Sans comme police d'écriture

pull/15/head
Jérôme Lebleu 8 months ago
parent
commit
099fc5e61c
6 changed files with 29 additions and 1 deletions
  1. +11
    -0
      assets/scss/abstracts/_variables-bootstrap.scss
  2. +6
    -0
      assets/scss/base/_fonts.scss
  3. +5
    -0
      gulpfile.js
  4. +5
    -0
      package-lock.json
  5. +1
    -0
      package.json
  6. +1
    -1
      styleguide/index.md

+ 11
- 0
assets/scss/abstracts/_variables-bootstrap.scss View File

@@ -48,6 +48,17 @@ $enable-validation-icons: false;
$body-bg: #474747;
$body-color: #ddd;

// Fonts

// stylelint-disable-next-line value-keyword-case
$font-family-sans-serif: "Open Sans", Arial, sans-serif;

$font-weight-normal: 400;
$font-weight-semibold: 600;
$font-weight-bold: 700;

$headings-font-weight: $font-weight-semibold;

// Buttons + Forms

$input-btn-focus-width: 0;


+ 6
- 0
assets/scss/base/_fonts.scss View File

@@ -1,3 +1,9 @@
// -----------------------------------------------------------------------------
// Font faces declarations
// -----------------------------------------------------------------------------

$FontPathOpenSans: "#{$font-path}/open-sans";

@import "open-sans-fonts/open-sans-regular";
@import "open-sans-fonts/open-sans-semibold";
@import "open-sans-fonts/open-sans-bold";

+ 5
- 0
gulpfile.js View File

@@ -34,6 +34,11 @@ const CONFIG = {
// ForkAwesome
src: 'node_modules/fork-awesome/fonts/*',
dest: 'fonts/fork-awesome'
},
{
// Open Sans
src: 'node_modules/open-sans-fonts/open-sans/{Bold*,Italic,Regular,Semibold*}/*',
dest: 'fonts/open-sans'
}
],



+ 5
- 0
package-lock.json View File

@@ -8634,6 +8634,11 @@
"mimic-fn": "^1.0.0"
}
},
"open-sans-fonts": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/open-sans-fonts/-/open-sans-fonts-1.5.1.tgz",
"integrity": "sha512-VN8BBWX0Cdv2eV6+XEee7mpQZOAPwFxFf6l/nxv6rcZSiyRW9+kbCwiI0zILJ6brH8CHa4kOWKCOFxlhHAy2dQ=="
},
"openurl": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/openurl/-/openurl-1.1.1.tgz",


+ 1
- 0
package.json View File

@@ -14,6 +14,7 @@
"bootstrap": "~4.3.1",
"fork-awesome": "^1.1.7",
"jquery": ">=3.0.0",
"open-sans-fonts": "^1.5.1",
"popper.js": "^1.14.4"
},
"devDependencies": {


+ 1
- 1
styleguide/index.md View File

@@ -1,6 +1,6 @@
# Typographie

<p class="lead">Cette application utilise la police d'écriture <a href="#"><b>?</b></a>, sous licence ?.</p>
<p class="lead">Cette application utilise la police d'écriture <a href="https://github.com/FontFaceKit/open-sans"><b>Open Sans</b></a>, sous licence Apache 2.0.</p>

---



Loading…
Cancel
Save