ingrammicro / puzzle-tokens

Batch create, manage and update Sketch styles and symbols using SCSS/LESS
GNU General Public License v3.0
92 stars 17 forks source link

Special character in classname #23

Closed tijmenvangurp closed 4 years ago

tijmenvangurp commented 4 years ago

Probably a bit an edge case, but maybe easy to fix?

I want to use the character Ω in the class/layer style name. This because it is later in the alphabet, and thus later in the list.

I always get the error

Failed to parse SASS with error message:

Cannot read property 'props' of null

I guess it is not an allowed classname in css. would it be possible to fix it e.g. with the --PT- prefix?

If not also fine, then I know I need to go for another solution.

image

MaxBazarov commented 4 years ago

Yep. I can bring some workaround. Let me think about.

On 15 Apr 2020, at 19:55, Tijmen van Gurp notifications@github.com wrote:

Probably a bit an edge case, but maybe easy to fix?

I want to use the character Ω in the class/layer style name. This because it is later in the alphabet, and thus later in the list.

I always get the error

Failed to parse SASS with error message:

Cannot read property 'props' of null I guess it is not an allowed classname in css. would it be possible to fix it e.g. with the --PT- prefix?

If not also fine, then I know I need to go for another solution.

https://user-images.githubusercontent.com/9990026/79365139-842bec80-7f4a-11ea-9822-7373bf01267c.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ingrammicro/puzzle-tokens/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMQVAUJDIKIY4E24LNMQL3RMXRGTANCNFSM4MIXTKZA.

MaxBazarov commented 4 years ago

With PT 8.3.2 you can add @charset "UTF-8"; as the first line to your file and use any UTF8 characters. See the example below.

@charset "UTF-8";
.Ωcolour {
    color:              red;
}