Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font weight variable #9002

Closed
ciro207 opened this issue Aug 2, 2013 · 10 comments
Closed

Add font weight variable #9002

ciro207 opened this issue Aug 2, 2013 · 10 comments

Comments

@ciro207
Copy link

ciro207 commented Aug 2, 2013

Is it possible to add a @font-family-weight in the variables.less in BS3?
Maybe it is useful also for every class

@font-family-sans-serif
@font-family-serif
@font-family-monospace

There are so many times I want to use different weight such as 300

Thanks!

@zlatanvasovic
Copy link
Contributor

It's better to use bold, semibold etc. instead of numbers (300, 500, 800...).

@ciro207
Copy link
Author

ciro207 commented Aug 2, 2013

Maybe you're right

Light 300
Normal 400
Semi-Bold 600
Bold 700
Extra-Bold 800

@Itrulia
Copy link

Itrulia commented Aug 2, 2013

@zdroid thats wrong, numbers are the go since there are more different numbers than keywords and sometimes the number is different than the keyword.

As an example: semibold is between 500-600 light between 200-300, book between 300-400 and ultralight 50-200.

but css uses fixed weights with keywords. And the problem is, if your font has a weight of 100 and 200 and you use as an example 120 css will use 200

@mdo
Copy link
Member

mdo commented Aug 2, 2013

I don't think we'll add variables for this.

@mdo mdo closed this as completed Aug 2, 2013
@am80l
Copy link

am80l commented Oct 8, 2013

This would be helpful for my use case. We use licensed web fonts exclusively and only have weights of 200, 400, 600, 800, so a default font-weight of 300 doesn't make much sense.

@zlatanvasovic
Copy link
Contributor

500 is default here.

@goodwink
Copy link

This would be very useful for us also, for the same reasons as @am80l. It is very helpful to be able to set the default font weight in the same way in which you can set the heading font weight.

@zlatanvasovic
Copy link
Contributor

Headings are very specific type of textual elements, so they should have a special font weight variable.

@gopz
Copy link

gopz commented Oct 31, 2014

What is the current workaround for setting a default font weight? Do you have to change it in the bootstrap less files? I would rather not update this every time I update bootstrap.

@twbs twbs locked and limited conversation to collaborators Oct 31, 2014
@cvrebert
Copy link
Collaborator

Locking since this issue petered out just over 1 year ago.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants