Code Monkey home page Code Monkey logo

Comments (7)

illright avatar illright commented on September 25, 2024 1

It's not supposed to be shipped with the library. I agree that not having an explicit mention in the docs is a bit of a miss. We'll add that shortly. Thanks for the heads up!

from attractions.

Tauka avatar Tauka commented on September 25, 2024

Thank you for great UI library :)

from attractions.

illright avatar illright commented on September 25, 2024

You're welcome :)

I'll keep the issue open for now to act as a reminder

from attractions.

zachsa999 avatar zachsa999 commented on September 25, 2024

Guess I'm stuck here now. I added this to static/css/theme.scss

`@forward '~attractions/_variables' with (
$main: red, //only here for testing, it works
$font: "'Ubuntu-Medium', sans-serif",
);

@font-face {
font-family: sans-serif;
src: url('../fonts/Ubuntu/Ubuntu-Medium.ttf') format('ttf');
}`

I can't make the font to load up. Whats the deal?

from attractions.

illright avatar illright commented on September 25, 2024

I imagine you need to specify the name for your font face. See the MDN docs on @font-face

from attractions.

zachsa999 avatar zachsa999 commented on September 25, 2024

I added

@forward '~attractions/_variables' with ($main: rgb(128, 66, 76),
    $font: "'Ubuntu', sans-serif",
);

@font-face {
    font-family: 'Ubuntu', sans-serif;
    // src: url('../fonts/Ubuntu/Ubuntu-Medium.ttf') format('ttf');
    src: url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
}

to my theme file, unfortunately no go. It does indeed work in the individual elementsas tested in a +page.svelte

in node_modules/attractions/_variables.scss line three declares $font to be Ubuntu

@use 'sass:color';

$font: 'Ubuntu', sans-serif !default;

$main: #4300b0 !default;

I can just declare the font for each element, but that excludea H1 etc. How do I go about this?

from attractions.

illright avatar illright commented on September 25, 2024

This is a different problem, off-topic to this issue that you're commenting on. Could you please open a new issue?

from attractions.

Related Issues (20)

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.